What are constructors in java?
No Answer is Posted For this Question
Be the First to Post Answer
Why strings in java are called as immutable?
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 java lang string?
What are the 4 versions of java?
What are format specifiers in java?
Does printwriter create a file?
What are the differences between this and super keyword?
What is the return type of the main method?
What are the two types of streams offered by java 8?
Explain about join() method?
What is double in java?
What things should be kept in mind while creating your own exceptions in java?