Differentiate between vector and array list.
No Answer is Posted For this Question
Be the First to Post Answer
How are observer and observable used in java programming?
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()); } }
What is basic syntax?
Can we nested try statements in java?
Explain the init method?
Mention a package that is used for linked list class in java.
What is difference between string and stringbuffer?
Is this valid in java ? Can we instantiate interface in java?
How do you declare a string variable?
What is the difference between yielding and sleeping?
Can a set contain duplicates?
Which arithmetic operations can result in the throwing of an arithmeticexception?