What is the difference between preparedstatement and statement in java?
No Answer is Posted For this Question
Be the First to Post Answer
Which types of exceptions are caught at compile time?
How do you trim a space in java?
What is difference between fileinputstream and filereader in java?
What is type conversion in java?
Why should we use singleton pattern instead of static class?
What is difference between static class and singleton pattern?
Is alive in java?
Is hashset sorted in java?
What do you mean by access modifier?
If circular link of two objects, then will it be garbage collected ?
What are the 4 versions of 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()); } }