Raghu Arikeri

+ Follow
since Jan 09, 2006
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Raghu Arikeri

Add return; statement after each view.forward(), that should resolve the issue.
9 years ago

udhaya kumarG wrote:i have created a custom component and Tag handler through which i need to get the value from the text box what ever typed in that Text box...

Not sure why you are looking to specifically use JSP. May be you can consider using jQuery? you can avoid the effort for custom code.
9 years ago
why is null = null is false and null <> null is also false?
Hi Friends,

I was able to configure IIS plugin for weblogic on my local m/c(windows xp). Both proxying by path and file type were working fine.

But getting "HTTP Error 404 - File or directory not found" error when i tried the same on a server which is Windows server 2003 x64 edition.

Initially as per error message in application event log, i figured out that the dll files from ...\weblogic92\server\plugin\win\x64 should be used. Inspite of this the i'm still getting the same error.

It would be great if you can advice on how to proceed.

Many thanks in advance,
Raghu M Reddy
13 years ago
found this file monitor to monitor a dir on local machine. May be you can enhnce it further for a remote machine.
14 years ago
Hi Friends,

I am glad to tell you that I scored 98% in SCJP 1.4.
I would like to thank you all for your help and support. Exam tips from K&B were very useful. Thanks to Kathy, Bert and JavaRanch

thanks once again,
14 years ago
Hi all,
what is the significance of a private final method? Do we ever use it?
14 years ago
just want add something to what Peter Chase said...

For every class loaded, the JVM has a corresponding java.lang.Class instance. So when a static method is synchronized, it's the lock of java.lang.Class instance which is used.

for instance methods there will be one lock per instance and for static methods one lock per class
15 years ago


this is OK. This will wait until notify() method is invoked on the String object s. And to invoke wait() the thread should aquire lock of the object. the code looks like this,

but what I feel is, wait should be invoked on objects which are shared among threads, where as the String object here is a local one. correct me if i'm wrong
15 years ago
now i understood the concept.

thanks a lot friends

Originally posted by Henry Wong:

if a runnable is available, which is set by the constructor. And if it is, it will call the runnable's run() method.


In the following code there is a runnable set thru constructor, but it is the overriden run method of class X which is invoked.

As in the following code, when ther are 2 run methods (that is one implemented from runnable and the other overriden from thread class), how will the start method decide which run to invoke??! please explain me the logic how start method works in this scenario...

Thanks in advance
when a runnable object is passed while creating the instance of Thread class, how will it be decided whether to invoke run method of Thread class or that of the runnable instance???
hi all,

here is wat i assume abt implementation of Thread.start() method,

1. when i create thread instance using
start method will invoke the Thread.run() which does nothing.

2. when i create thread instance using
start method will invoke runnable_instance.run()

correct me if i am wrong.
please explain abt other actions taken it start method

"foo" and new String("foo") are not same as Jim said.

when you invoke bar("foo"), new string object will not be created.

the following example might make it easy to understand this..

String s1 = "foo";
String s2 = "foo";
here, s1 == s2 is true pls note that we are comparing the references


String s3 = new String ("foo");
String s4 = new String ("foo");

this time, s3 == s4 is false pls note that we are comparing the references

so when u create s2 no new object is created,
but in case of s3 and s4, new objects are creted.
15 years ago
by default newInstance() method will invoke the default constructor. As the constructors for Singleton are private, its thowing the following exception.

java.lang.IllegalAccessException: Class TestSingleton can not access a member of class SingletonThree with modifiers "private"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
at java.lang.Class.newInstance0(Class.java:290)
at java.lang.Class.newInstance(Class.java:249)
at TestSingleton.main(TestSingleton.java:29)

is there any way by which the getInstance() method of the singleton can be accessed??
15 years ago