Which is faster set or list in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is jvm? How its run?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
. Differentiate between instance and local variables.
what is the collable collections in java?
How will you compute size of a structure?
diffrence b\w println() and printf()
I was asked to draw the class diagram for the below scenario which should obey OOPS concept. A Portal is to be developed for a school , which has 3 main divisions viz , Education , Admin & Trust. Each division has 2 sub divisions Kinder Garden & Higer Secondary.
Can we sort list in java?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
Why does abstract class have constructor?
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?
What are the uses of synchronized keyword?