Are arrays passed by reference in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is main function purpose?
What is floating data type?
Can an interface have a constructor?
Where are global variables stored?
How core java/j2ee project performance can be measured ?
What is ResourceBundle class?
Can a private method be declared as static?
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()); } }
Why char array is preferred over string for storing password?
What is "finally" keyword?
How to make a read-only class in java?
use of wrapper classes?