Yashodhara Duddela

Greenhorn
+ Follow
since Dec 27, 2001
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 Yashodhara Duddela

Congratulations Rick.You got a good score!!!
19 years ago
Thank you Ross
19 years ago
Hello all,
I passed with 84% on the 7th of Feb,taking the exam was a great experience after all the Mock exams from JavaRanch.I want to thank all the people at Javaranch in posting all the questions along with the explanations. This really helped towards my final exam.I really appreciate all your efforts and time. This is a great website for people who are aspiring to take the exam.

Thanks once again,
Yashodhara
19 years ago
The above Question was from JavaPrepare,I did not understand the logic then,but now I did!
Thanks,
Yashodhara

The ans)5050
I could not understand this code, as to who the flow is.
Thanks,
Yashodhara
Hi,
This is question from JQPlus,the answer is class A will not complie but I disagree as I can compile this code.
class A
{
byte getStatusCode(Object obj) throws NullPointerException
{
if(obj != null ) return 1;
else return 0;
}
}
class B extends A
{
//override getStatusCode method.
}
Which of the following statements are valid?
a)Overriding method cannot throw IOException
b)Overriding method can throw Throwable
c)class A will not compile
d)Overriding method can throw any exception
e)Overriding method may choose not to throw any exception
ans)c
(I think that zero can be returned to byte)
can anybody help me if I am wrong!
[ January 31, 2002: Message edited by: Yashodhara Duddela ]
[ January 31, 2002: Message edited by: Yashodhara Duddela ]