Rams Senthiil

Greenhorn
+ Follow
since Jan 29, 2003
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 Rams Senthiil

Hi,
Can any one help me to clear my doubt
Say i have a class like this

class producer extends {
private static int invoiceNo = 0;
private synchronized int getInvoiceNo(){
return invoiceNo++;
}
}
Since invoiceNo is static it's shared and it would be accssed only through synchronized method shall i assume a thread requires class level lock to execute getInvoiceNo() method. It's some thing similar to declare a method like
static synchronized int getInvoice()?
Thank you
18 years ago
Hi everybody, Please suggest me a good book for Struts
18 years ago
Find a line containing ServletServlet value in weblogicserver.properties file and un comment it.
Web logic server 5.1 works fine with servlet 2.2 specification.
21 years ago
In weblogic server <servlet> tag requires name attribute, the name attribute must be assigned with registered servlet name. Most of the articles and book i read never mentioned about this name attribute, they pointed code attribute to deal with.
But in web logic server if tried to assign code attribute with registered name of servlet or name of un registerd servlet it complains "Could not found parameter name". Server behaves properly only when registered name of servlet assigned to name attribute of <servlet> tag.
Can any one explain me why?
21 years ago
Thank you, What about time slice is there any such a thing for java threads?
I found a thread issues notify didnt invoke the waiting thread immedeatly, instead the same thread which issues notify keep on running until it executes few statements. I thougth once a notify is executed it should immedeatly transfers control to any waiting thread.I think each thread is alloted with a paricular time slice, until that time slice is over thread will keep on running even it issues notify or wait--- i am not sure, can any one help me?
Tnak u every one for your valuable information
21 years ago
I found TimeZone class provides day light saving time.. I dont know what is that?
21 years ago
Of course Mathew it will work even if you type baseclassname.Staticmethod().I have written this smaple to clarify that base class static method can be duplicated in derived class provided the base class static method dosent qualify with final keyword.
21 years ago
Sataic methods can be overriden or atleat you can make your class behave so
example
class x{
public static stat(){
System.out.println("Base class");
}
}
class y extends x{
public static stat(){
System.out.println("derived Class");
}
public static void main(String arg[]){
stat() // prints derived class
}
}
suppose you comment stat() method in class y it prints stat() method in base class. Suppose you declared stat() in class x as final and if you try to use same signature of method in y would result in error message.
21 years ago