The window, Frame and Dialog classes use a border layout as their default layout.
Latest Answer : Window, Frame and Dialog ...
The setLayout() method is used to specify a container's layout.
The Panel and Applet classes use the FlowLayout as their default layout.
Latest Answer : panel and its subclasses(applets) ...
The GregorianCalendar provides support for traditional Western calendars.
The purpose of the Runtime class is to provide access to the Java runtime system.
Latest Answer : Which returns the runtime information like memory availablilityRuntime.freeMemory() --> Returns JVM Free MemoryRuntime.maxMemory() --> Returns the maximum amount of memory that the JVM will attempt to use.also helps to run the garbage collectorRuntime.gc() ...
The finally clause is used to provide the capability to execute code no matter whether ornot an exception is thrown or caught.
Latest Answer : In try,catch clauses either try clause(If exception is not happend) or catch clause(If exception occures) is exicuted.If we want to exicute a block of statements doesn't depend on exception then we put those block of statements in finally ...
It must provide all of the methods in the interface and identify the interface in itsimplements clause.
Latest Answer : interface enhance the concepts of inheritence. by calling multiple interfaces to class we can also inherinting more than a class indirectly ...
The event-delegation model has two advantages over the event-inheritance model. First,it enables event handling to be handled by objects other than the ones that generate the events (or their containers).
The wait(),notify(), and notifyAll() methods are used to provide an efficient way forthreads to wait for a shared resource. When a thread executes an object's wait() method, itenters the waiting state.
Latest Answer : wait() will move the thread to sleep state allowing for the other thread to execute. notify() will trigger back the wait() thread to ready state and to execute further. notifyAll() will trigger all wait() threads to ready state. Later, it will ...
The purpose of the System class is to provide access to system resources.