Explain the transient field modifier?
No Answer is Posted For this Question
Be the First to Post Answer
What is static variable with example?
What is class forname?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is the difference between sop and work instruction?
What is byte code and why is it important to java’s use for internet programming?
What are the new features in java 8?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
what is use of business objects?
How to make a class immutable?
How do you replace a string in java?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
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()); } }