Все публикации

Can a class have multiple constructors

How can you generate random numbers in Java

Give a practical example of singleton class usage

How an object is serialized in java

Can a class be a super class and a sub class at the same time

How can we make copy of a java object

How can we pass argument to a function by reference instead of pass by value

Does Importing a package imports its sub packages as well in Java

Can we call the constructor of a class more than once for an object

What are the various access specifiers for Java classes

Can we have two methods in a class with the same name

Can we declare a class as Abstract without having any abstract method

Can main method in Java can return any data

Can we override static methods of a class

Can we declare the main method of our class as private

What are Loops in Java What are three types of loops

What is a singleton class

How infinite loop is declared

What is an infinite Loop

How garbage collection is done in Java

How objects of a class are created if no constructor is defined in the class

There are two classes named classA and classB Both classes are in the same package Can a private m

What is data encapsulation and what's its significance

In multi threading how can we ensure that a resource isn't used by multiple threads simultaneously