Wednesday, 5 February 2014

JAVA INTERVIEWS-2

11. Which containers use a FlowLayout as their default layout?The Panel and Applet classes use the FlowLayout as their default layout.12. What state does a thread enter when it terminates its processing?When a thread terminates its processing, it enters the dead state.13. What is the Collections API?The Collections API is a set of classes and interfaces that support operations on collections of objects.14....

JAVA INTERVIEW QUESTIONS-1

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/oOperation is performed.4. How...