![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions 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 : As your might already know, any synchronisation needs an object (monitor) to acquire lock one. See below for the three different types on how to synchronise code.public class A{ // A monitor object of sycnhronising piece of code. private ... 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 : An inner class is a full pledged member of the enclosing class (outer class), so it can be marked with any access modifier including abstract or final modifiers(neer both abstract and final together). But an inner class cannot contain any static members ... setBounds() Latest Answer : component.setBounds(-,-,-,-); ... The EventObject class and the EventListener interface support event processing. Latest Answer : Java.util.Event class ... A package statement must appear as the first line in a source code file (excluding blanklines and comments). Latest Answer : package statement must appear as the first line in a source code file and one public class declaration. ... Panel Latest Answer : The Immediate super class of Applet is PANEL ... The readLine() method returns null when it has reached the end of a file. Latest Answer : readLine() method of BufferReader class returns String and when it reaches the end of file file it returns null. ... Window Latest Answer : System.Windows.Forms.CommonDialog ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||