![]() |
| 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. ... The setLayout() method is used to specify a container's layout. 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. ... setBounds() Latest Answer : component.setBounds(-,-,-,-); ... When a task invokes its yield() method, it returns to the ready state. When a task invokesits sleep() method, it returns to the waiting state. Latest Answer : yield method is mainly used to release the lock of resource and pull up in to steady state from wait pool. Sleep() will pull the thread to sleep for the given time. It will throws exception while trying to intrupt in b/w the sleep state ... An object's finalize() method cannot be invoked by the garbage collector while the objectis still reachable. However, an object's finalize() method may be invoked by otherobjects. Latest Answer : No, reachable obejcts can not be garbage collected ... 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. ... A native method is a method that is implemented in a language other than Java. Latest Answer : Informs the compiler that the method has been used in a non-java platform and used only with the methods. ... The default value of an String type is null. Latest Answer : We use overriding when method avaliable in super class doesnot satisfyour requirement.That is To extend the alreadyavailable feature wew use overloading.If we require the new functionality other than, what we already have we go for Overriding. ... If a checked exception may be thrown within the body of a method, the method musteither catch the exception or declare it in its throws clause. Latest Answer : this rule is actually for handling the exceptions:that is there are two ways by ehich u can handle the exception :1:either you use the try catch statement and enclose the appropriate code in the try catch block,this is called as the catch or the HANDLE ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||