How do you start a thread?
No Answer is Posted For this Question
Be the First to Post Answer
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 the use of static keyword in "public static void main()"
10 Answers College School Exams Tests, Infosys, Six Dee Telecom,
What Is Resource Leak?
What is singleton class and how can we make a class singleton?
In what type of containers, Border layout is a default layout?
why java does not have operator overloading?
why java uses class level type casting ?
Explain the difference between extends thread vs implements runnable in java?
Is hashset sorted in java?
what is aggregation in java?
why abstract class will have a constructor?
Are functions objects in java?