what is the difference between thread and runnable types? : Java thread
what is the major difference between linkedlist and arraylist in java?
What is the range of the short type?
Is null an object java?
What for read() function?
why do we use interface in java?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
Explain, java is compatible with all servers but not all browsers?
What is an array length?
What is assembly condition codes?
Why is singleton class used?
What are the restrictions imposed on method overriding?
Does list maintain insertion order java?