vinuharan haran

Ranch Hand
+ Follow
since Feb 26, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vinuharan haran

oooooops...i totally got lost...
next time will post my doubts with good subjectline...sorry about that..
thanks for the reply.
vinu.
[ July 25, 2006: Message edited by: vinuharan haran ]
18 years ago
I get username and password in a form.I use a servlet to vaidate those parameters.
The strange thing is..
Even though the password entered and the one in database seem to be same( i verified this by printing out)....the code fails to match.
The following line always returns false.
(password is the one entered in the form and opassword is the one retrived from database.)
I use mysql database.What am i missing here?
Thanks,
vinu.
18 years ago
I try to query mysql server through servlet.I get an exception.
Exception:com.mysql.jdbc.Driver
I use tomcat.
Here is the Connection part of jdbc code...

Here is the portion of servlet code...


I'm confused...
please help me out...
Thanks,
vinu.
[ July 17, 2006: Message edited by: vinuharan haran ]
Hi Dittmer,
According this link...
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
GET,HEAD,PUT,DELETE,OPTIONS,TRACE are all idempotent.
Kindly explain on this...
Thanks,
vinu.
PUT,HEAD,TRACE,GET,DELETE,OPTIONS are all idempotent.Meaning they yield the same results for any number of identical requests.

Thanks,
vinu.
Hi,
I am also interested to join the group.I have completed scjp with 96% in dec 05.

thanks,
vinu.
Hi,
Math.max(double,double) will be called as float is widened to double.
thanks,
vinu.
Hi,
The answer is only C.resume()is a deprecated method as of java1.4 is concerned.
you are partly right.If there is a higher priority thread in the poolat the time of yield that thread may be selected by the scheduler.The thread which yields will again be selected by scheduler for execution once it comes to the runnable state.so the thread will be run to completion.
thanks,
vinu.
Hi,
The reason is local variable cannot be declared static.
thanks,
vinu.
Hi,
I hope this code answers your doubt.

thanks,
vinu.
Hi,
The answer to the last two questions lies in the fact that the most specific method is chosen.
For information on the most specific method, here is the link...
corey's tipline
thanks,
vinu.
Hi,
By related i mean parent/child hierarchy.
Have a look at the folowing code....


obj1 instanceof two will result in compiletime error as they belong to separate branches.
At the same time b instanceof one will not result in compiletime error
as only the reference type of b(which is base) is checked against Right hand side type of the operator which is one.obviously base and one are related.
only at run time the type of the object b holds(which is two)is tested against RHS type.Again they belong to separate branches...so false is the result.
-vinu.
Hi,
Another case:when Math.abs is called on Long.MIN_VALUE it will return the same negative value.
-vinu.
Hi,
It results in compiletime error as the fighter and transport classes are in no way related.It is same as follows...
f16 f=new f16();
transport t=new transport();
f=t;//this will result in compile time error.
Two steps to consider when instanceof operator is involved.
1.It shud pass the compiler type check.
2.Runtimeobject type shud be compatible with the type on the right hand side of the operator.
Failure of step 1 will result in compile time error.
Failure of step 2 will result in false.
Hope this helps..
thanks,
vinu.
[ August 14, 2005: Message edited by: vinuharan haran ]
Hi,
Here is a way to call the method declared in the innerclass in the constructor.

It is perfectly legal to create a local inner class in the constructor.
Hope this helps...
thanks,
vinu.