Objects that subclass the Observable class maintain a list of observers. When anObservable object is updated it invokes the update() method of each of its observers tonotify the observers that it has changed
Latest Answer : Observer observe only those class which are Observable. ...
Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object..
Latest Answer : Aditya Pls write code and explain ...
It uses those low order bytes of the result that can fit into the size of the type allowed bythe operation.
Latest Answer : In java there is no point of overflow and underflow, it was there in C. For avoiding that java introduces type casting. Java will allow some more space from the defult space of primtive type. ...
The Vector class provides the capability to implement a growable array of objects
Latest Answer : A vector implements dynamic array, which can grow and shrink dynamically.It is similar to Arraylist with a difference that vector can be synchronized. it also contain some legacy methods. ...
A (non-local) inner class may be declared as public, protected, private, static, final, orabstract.
Latest Answer : A non-static member class means inner class is a member of an enclosing class, it can have any accessiblity:public,default,protected, or private. ...
setBounds()
Latest Answer : component.setBounds(-,-,-,-); ...
The EventObject class and the EventListener interface support event processing.
Latest Answer : Java.util.Event class ...
Panel
Latest Answer : The Immediate super class of Applet is PANEL ...
Under preemptive scheduling, the highest priority task executes until it enters the waitingor dead states or a higher priority task comes into existence. Under time slicing, a taskexecutes for a predefined
Latest Answer : 1. Pre-emptive Scheduling.Ways for a thread to leave running state -· It can cease to be ready to execute ( by calling a blocking i/o method)· ...
Window
Latest Answer : System.Windows.Forms.CommonDialog ...