Milton Singh

Greenhorn
+ Follow
since Mar 27, 2008
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 Milton Singh

Hi, Please help me with the follwing problem:
> I have my own utility class, all methods are static there .
> Don't want to create object for that class
> Any other class can refer that utility class mehtods directly as both are in same package
> But I want to make sure that all those methods must be implemented.
> There is some infrastructure design constarint that is why i can't mark my utility class as base class
> I cant use the interface also because of this infrastructure thing.

Hope You get my requirement:

In brief I want to force other classes to use the methods of my utility class without extending it.

Thanks,
Milton
15 years ago

Originally posted by Anuraag Godika:
Extend the HashTable class with your own and override the put method to accept only known keys ??



Thank You guys for your inputs. I will try to create a subclass for hashtable and will see how it works
15 years ago
I need a replacement for HashTable in my design.
Restriction:
> can use only vector, properties,hashtable

Issue:

> I have a util class where we are using hashtable h1 as parameter in method1.
> this util class will be used by a number of users.
> the users will set the values in h1 and will call method1 (h1 as param).
> The keys for h1 has been defined in util class and I am expecting the users to use the same key
> But in real use case the users can define their own key and in that case in util class we will get null value which will disrupt the processing of method 1

Please think of it and give suggestions. I will update your queries
15 years ago
Go through the following link.

You will get the syllabus for both exams.
Even if you opt for 1.4 , there is one upgrade exam for 1.5
So you can choose anyone as per your preparation and wish.

And certainly thumbs up for cathy and bates book. Before taking up the test just go through it once.

http://www.sun.com/training/certification/java/scjp.xml
As suggested by few of my folks who have cleared the test, the ideal time should be of 1 month preparation with 2-3 dedicated hours a day,if you know the basics.

But my suggestion will be to take 2 months of time, write online exams as many you can, solve as many papers you can.

I am also planning to take the test in May end.
[ March 27, 2008: Message edited by: Milton Singh ]