suji kumar

Greenhorn
+ Follow
since Nov 08, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by suji kumar

Design pattern is not specific to perticular technology... its an effective solution for a problem
static block will be executed when the class gets loaded...
17 years ago
I think it is not possible using single class..because the object created using tht perticular class will not behave differently for the same messsage(in this case setX() is the meaasge)
17 years ago
Waefler is right..
The problem is not due to implementing 2 third party interfaces....its becuase overloaded methods
Its hardcoded rule of OOPs for overloading the method that, you can not overload the method with same argument..watever be the return type it doesnt matter, there has to be some changes in argument
17 years ago
dear harish,
Class which has main method need not be public.
The exception may be due to, David must have tried to run : java DOG , which doesnt have main method , instead of DOGTESTDRIVE
17 years ago
If you need the different copies of variable for different object it has to be made instance variabe(non-static). If you want to share a common variable between every object of that class type, you have to go for static variable
17 years ago
If you want to store an object itself, it has to be serializable
If it is not possible for you to make it serializable, you have to store each and every state of an object into a file, and when you want the object back , you have to create a new object and flush tht object with stored states
17 years ago
No, we cant force garbage collector to do deallocate memory,only we can request garbage collector to do so(using System.gc() ), but there is no guarantee tht garbage collector deallocates memory when request is passed to it.
17 years ago
The colloection oject like Vector, ArrayList are called Concrete Aggregator. This Object gives handle of Concrete Iterator which is of type Enumeration when you ask for Enumeration . And all the implementation of methods(like hasElement(), next() )are written in this Concrete Iterator Object
17 years ago
Implementation is the responsibility of concrete iterator, provided by the aggregate object
17 years ago