nivi zal

Greenhorn
+ Follow
since Mar 16, 2006
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 nivi zal

Hi everyone!
i am new to jdbc...just like to know how to get started with it....any books or tutorials recommended....and wud like to practice jdbc programming...from where can i get programming exercises...
Kindly help!
I am unable to run this code in EditPlus although it is compiling fine...it is giving the following error when i am trying to run it in EditPlus:
java.lang.NoClassDefFoundError:Current
Exception in thread "main"
But this code is running fine in the Eclipse IDE,can someone plz tell me why is this so?
In chap-5,pg324 of K&B it is given that "a case constant must evaluate to the same type as the switch expression can use,with one big constraint:the case constant must be a compile time constant!Since the case argument has to be resolved at compile time,that means u can use only a constant or final variable that is assigned a literal value.It is not enough to be final, it must be a compile time constant"For Example:


I am not able to understand what is a compile time constant...here why is b not considered a compile time constant...and how do we come to know which is a compile time constant
Plz help!
[ April 03, 2006: Message edited by: nivi zal ]
hi samuel!
although i am new to java and have been preparing for scjp1.5 for the past 2.5 weeks....i wud suggest Kathy Sierra and Bert Bates...i have been following that book and i must say that it is really very helpful and totally focusess on scjp exam...since ur preparing for 1.4 u can buy the scjp1.4 by kathy and bert...i hope it helps!
In chap-3,Q2 of K&B related to GC i have a doubt...

Q:When //do stuff is reached,how many objects are eligible for GC?
1. 0
2. 1
3. 2
4.Compilation fails
5. It is not possible to know
6. An exception is thrown at runtime

Its given that 3. is the correct option...i.e 2 objects are eligible for GC...but why not 3objects? i mean why is c2 which is passed to go() not eligible for GC apart from c1 and wrapper object story??? Plz Help
hey Congrats!
thats really very encouraging...plz mail me the notes too at nivvi_28@rediffmail.com
In K&B for java 1.5 chap-2,Self-test Q8 i have a doubt...

Which statement(s), inserted at line 6,will compile?
1. Flower getType(){return this;}
2. String getType(){return "this";}
3. Plant getType(){return this;}
4. Tulip getType(){return new Tulip();}
the answers in the book says options 1,3 and 4 are correct as 1 and 4 are examples of co-variant returns
but when i tried to compile the program using these options ...it said the return type is incompatible with Plant.getType()....i am totally confused now! Plz Help


[ March 25, 2006: Message edited by: nivi zal ]

[ March 25, 2006: Message edited by: nivi zal ]
[ March 25, 2006: Message edited by: nivi zal ]
thanks its clear now!
I read in Kathy Sierra 1.5 that static methods can't be overridden,but can be redefined....what does this mean....whats the difference between the two...plz help
thanks a lot to all of u for helping me understand this!
can someone plz tell me what exactly is a checked exception and how is it different from an unchecked exception
ya i have some experience in c++...but nothing more than that
plz help!
kindly reply to my problem urgently guyz....i'll be really very thankful
hi guyz!
i m new to java...can u ppl provide me some help regarding SCJP1.5...i am going to appear for the exam within a month...i cant find material specific to scjp 1.5...and i have heard there is quite a difference between 1.4 and 1.5...can someone plz provide some knowledge regarding this...as there is a lot of time crunch!!!