Files are the foremost visible and therefore the most precious feature of any computing system to its users. Files provide a mechanism fo...
Read More
Swap two variable values without temp variable
void swap(int x,int y) { x=x+y; y=x-y; x=x-y; }
Read More
How you can force the garbage collection?
Garbage collection automatic process and can't be forced. You could request it by calling System.gc(). JVM does not guarantee that GC...
Read More
Defining an abstract class
Definition:- A class containing abstract method is called Abstract class. An Abstract class can't be instantiated. Examp...
Read More
Difference and similarities between an interface and an abstract class
--> Abstract class is a class which contain one or more abstract methods, which has to be implemented by sub classes. Interfa...
Read More
Difference between private, protected, and public
--> These keywords are for allowing privileges to components such as java methods and variables. Public: accessible to all cla...
Read More
Inheritance
Inheritance is the process by which one object acquires the properties of another object. This shows the hierarchical classificati...
Read More
Subscribe to:
Posts (Atom)