How many bits does a boolean take?
What is the parse method in java?
What is an interface in java? Explain
Can we make a constructor final?
what is difference between global methods and local methods?
What method is used to compare two strings ?
What is flag in python?
What is the default value of float and double datatype in java?
Why you should not use singleton?
Say any two properties in beans?
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()); } }
Is set ordered in java?
Is upper case in java?