What is the main use of java?
Can you explain the private protected field modifier?
How to find the largest value from the given array.
What is a bufferedreader?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
Can we instantiate Interfaces?
How are this() and super() used with constructors?
What is deadlock and how to avoid this?
Can you give few examples of final classes defined in java api?
What is the purpose of the strictfp keyword?
What is off heap memory?
What does the “final” keyword mean in front of a variable? A method? A class?
Which number is denoted by leading zero in java?