Rajiv Ahuja

Greenhorn
+ Follow
since Feb 02, 2000
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 Rajiv Ahuja

I'm new to Java programming and just cleared SJCP2. Now I'm on my way to Learn servlets and want some hints on how to go about.
Should I start with famous O'really book or I should learn JDBC before stepping in to world of servlets.
Any suggestions will be greatly appreciated.
Thanks
Rajiv
19 years ago
I know you didn't ask me that question but I'm in best position to answer it so I WILL
Keep the JDK handy and use it only when you are not convinced that whatever Mock Exam or for that matter any other resource is saying is not correct.
I never wrote any program but always cut and pasted available code snippets if I'm confused.
Bottom line..I cleared the exam with 86%
19 years ago
In this case speed is not essence of success, so take your time.
All the best
Question are simillar to what we discuss here (some are identical). I started scoring 80% at an average on all mock exams I gave.
I read R&H book and and went through all mock exams on Net
b) also looks good
round(-4.3)= -4
let me try to make it clearer
What's the rule to find the int equivalent of a char value
e.g int i ='c'
int i = '\u0070'

Now if I say
println(i)
what does get printed in both cases and why.
1) Yes they can
2) No depends on underlying OS
3) It can be, infact that's one way of creating a thread
4) Yes it does. It belongs to default thread group if you don't specify one in thread constructor
5) If don't see any reason why they shouldn't be allowed, but I'm not sure
What's the rule to find the int equivalent of a char value
e.g int i ='c'
int i = '\u0070'
so now what's the value of i which is an interger
Anybody else with suggestion on "How to check whether you are prepared or not"
difficult question....huh(not in exam objectives )
Yummm another beginner's question answer is D
a) String does support it
b) 'cuz d) prints something
c) object reference type is not equal to "computer"
d) "equals" does the 'deep' comparasion so this is correct.
e) 'cuz c) is wrong
Tony suggest me something
I'm planning to give SCJP2 exam next week but I don't know that I'm prepared or not. So tell me how much should I score in this MindQ exam to get ensured that I'm prepared.
I can understand that there can't be any such benchmark but still a word from you will help me a lot. My target is 71% in real exam.
Thanks
Rajiv
[This message has been edited by Rajiv Ahuja (edited February 07, 2000).]
1. Yes 'cuz there is no reason for No
2. Yes overloading methodTwo
3. No trying to overide but couldn't as return type is not same.
4. Yes can overide as the exception thrown by overiding method is a runtime exception
5. Yes succesfully overides, exception is subclass of overidden method's exception so no problem.
Comments please
[This message has been edited by Rajiv Ahuja (edited February 07, 2000).]
[This message has been edited by Rajiv Ahuja (edited February 07, 2000).]
1. Incorrect 'cuz compiler compiles it
2. Correct 'cuz there is no construtor in B, so compiler inserts a default constructor super(), which calls public A() of A. No need to look at C 'cuz it has to go through B constructors to call A constructors.
3.Correct 'cuz I just counted them.
4. Incorrect as 'this()' makes you call more than one constructor of same class.
This is an explanation from a beginner so experts please verify and give your blessing to my answers

[This message has been edited by Rajiv Ahuja (edited February 05, 2000).]
[This message has been edited by Rajiv Ahuja (edited February 05, 2000).]
O.k let me try
a) Correct 'cuz int gets converted to float
b) hmmm...thinking
c) ditto as Paul
d) float gets converted to double
Please let me know if my explanations are correct.