Which of these process occur automatically by java run time system?
Answer with explanationAnswer: Option A
Serialization and deserialization occur automatically by java run time system, Garbage collection also occur automatically but is done by CPU or the operating system not by the java run time system.
Which of these method can be used to increase the capacity of ArrayList object manually?
Answer with explanationAnswer: Option D
When we add an element, the capacity of ArrayList object increases automatically, but we can increase it manually to specified length x by using function ensureCapacity(x)
Which of these method can be used to make the main thread to be executed last among all the threads?
Answer with explanationAnswer: Option B
By calling sleep() within main(), with long enough delay to ensure that all child threads terminate prior to the main thread.