Advanced Java Questions and Answer for Interview
1. What is a transient variable? A transient variable is a variable that may not be serialized. 2. Which containers use a border Layout as their default layout? The Window, Frame and Dialog classes use a border layout as their default layout. 3. Why do threads block on I/O? Threads block on I/O (that is enters the waiting state) so that other threads may execute while the I/O Operation is performed.