subodh k kumar

Greenhorn
+ Follow
since Aug 19, 2009
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 subodh k kumar

try with
<%@ page contentType="text/html; charset=UTF-8" %>
13 years ago
JSP
In case of primitives compiler already checks the type and no unexpected type mismatch at run time , which cause cast exception.Where as in case of objects object type can be decided at run time as well.
13 years ago
Helper Class mainly have private constructor as well because of which it can not be extended and instantiated.So the only way to access the functionality/methods is to keep the methods static.This also helps Helper/Utility class to keep its functionality secure from unwanted overriding the method funtionality.
13 years ago
Can someone please suggest which book is better for SCEA 5.0 preparation.
Sun Certified Enterprise Architect for Java EE Study guide By Mark Cade & Simon robert
or
Sun Certified Enterprise Architect for Java EE Study guide(2nd Edition) by Mark Cade and Humphrey Sheil
If you have valid variable name then by using refelection API(java.lang.reflect.Field)you can retrieve the expected value.
13 years ago
What is the heap size defined in your project . Is it the same as other project ? i think provided logs are not good enough to suggest any thing.please provide more log.
13 years ago
Thankyou everyone for your valuable contribution.
13 years ago
In Java 5 , The varargs functionality allows multiple arguments to be passed as parameters to methods. It requires the simple ... notation for the method that accepts the argument list and is used to implement the flexible number of arguments. eg.
void argtest(Object ... args) { for (int i=0;i <args.length; i++) { } }

Question is Can we override/overload this method?
13 years ago
own the animal which is pet
13 years ago
Yes Chris , I meant same . case has been corrected . Thankyou for pointing.
13 years ago
You need to override equals() and hashCode() methods in Cat class because Hashvalue of object should be match with the key passed in map.since new Cat() will create new Object in every call , it does not guarantee the same hash value.so the value for this key is returned as NULL.
13 years ago
Iterate the List using iterator and override toString() method in IndigoResponseWrapper with your attribute printing logic.
13 years ago
This code will print the output as.

*******
*****
***
*

13 years ago

Yes,Inside your run() method you can access the Current thread and reset the name of it.This will print the new Thread Name.
Thread currentThread = Thread.currentThread();
currentThread .setName("newName");