Explanation: ArrayList is faster for access, LinkedList for insertion/deletion.
Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Explanation: ArrayList is faster for access, LinkedList for insertion/deletion.
Explanation: equals() compares object values, == compares references.
Explanation: Division by zero throws ArithmeticException.
Explanation: super() is used to call parent constructor.
Explanation: String objects are immutable in Java.
int[] arr = new int[3]; System.out.println(arr[0]);
Explanation: Default value of int array elements is 0.
Explanation: stop() is deprecated; interrupt() is preferred.
Explanation: GC automatically removes unused objects.
Explanation: private has the most restricted access.
System.out.println("Java".equals(null));
Explanation: equals(null) always returns false.