describe synchronization in respect to multithreading? : Java 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()); } }
How can you debug the Java code?
Why non nested classes in java are not having marked as protected access specifier
What is a numeric digit?
What are the various access specifiers in java?
Can list be final in java?
Diff between Comparator and Comparable?
What are the supported platforms by java programming language?
What is inner class?what is the use of inner class?where we create the object for inner class? and inner class can extend any class or inner class can implement any interface?
Name few "optional" classes introduced with java 8 ?
What is boolean strategy?
How to do validation of the fields in any project ?