![]() |
| 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 Collections API is a set of classes and interfaces that support operations oncollections of objects. Latest Answer : Collection API's are a group of classes where we can store more then one objects in as a single unit. Collection give some useful API where we can directly implement the Data structures. ... The List interface provides support for ordered collections of objects. Latest Answer : The list interface extends Collection and declares the behaviour of a collection that stores a sequence of elements. Elements can be inserted or accessed by their position in the list, using a Zero-based index. Alist may contain duplicate elements. ... 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. ... Wrapped classes are classes that allow primitive types to be accessed as objects. Latest Answer : Wrapped classes are used to Primative data types as an Object.EX: int val1; val=10; val=new Integer(); ... Garbage collection does not guarantee that a program will not run out of memory. It ispossible for programs to use up memory resources faster than they are garbage collected.It is also possible for programs Latest Answer : The object is eligible for garbage collection only if there is no strong reference to the object. An exception to this is island of references(where all objects point to each other).And you should never write your significant code in the object's finalise ... 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). String objects are constants. StringBuffer objects are not. Latest Answer : see the following line of codeclass abc{ public static void main(String args[]) { String ab=new String("test");ab.replaceFirst("e","b");System.out.println(ab); }}guess what the result be No it will not replace e with b .Thats ... An object's lock is a mechanism that is used by multiple threads to obtain synchronizedaccess to the object. A thread may execute a synchronized method of an object only afterit has acquired the object's The Dictionary class provides the capability to store key-value pairs. Latest Answer : run this file, i think result will itself explain you the use of LOG4J. otherwise mail me ritesh.patni@gmail.com :- package com.banking.log4j; import org.apache.log4j.*; import com.lnt.banking.constant.ConstantIf; public class ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||