sonali saxena

Greenhorn
+ Follow
since Mar 18, 2001
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 sonali saxena

Dear Sumathi
You can visit Mahaannas site to get all the info about Scjp.
I am sending you the link.
http://www.javaranch.com/maha/index.html
Happy studying.
Sonali
class Parent {}
class DerivedOne extends Parent {}
class DerivedTwo extends Parent {}


Which of the following statements is correct for the following expression?
Parent p = new Parent();
DerivedOne d1 = new DerivedOne();
DerivedTwo d2 = new DerivedTwo();
d2 = d1;



A. Illegal both at compile and runtime.
B. Legal at compile time, but may fail at runtime.
C. Legal at both compile and runtime.
The answer given is 'b' but according to me it is 'a'. Am I wrong?
Thanx
Sonali
22 years ago
Thanx alot for clearing the confusion!!!
22 years ago
Pls tell me if the test is for 1.5 hr or 2 hr. John has mentioned it to be of 1.5 hr whereas sun site says it to be of 2 hr.?
22 years ago
The correct ans are 1 and 4 as a public class can be referenced, instantiated and extended anywhere. hope this helps.
Sonali
Thanx stevie for a quick response.
But don't you think that this q had very ambiguous wording what should be my answer in such a case?
I found this code in one of the mock exams.
import java.applet.*;
import java.awt.*;
public class Q20 extends Applet
{
Button okButton = new Button("Ok");
public void init()
{
setLayout(new BorderLayout());
add("South", okButton);
add("North", okButton);
add("East", okButton);
add("West", okButton);
add("Center", okButton);
setSize(300,300);
}
}
Why does it generate only one button with ok label occupying the whole applet?
Thanx
Sonali
I found this q in one of the mock tests.

What is the default priority of a newly created thread?
The answers was that a thread takes the priority of its parent thread whereas i thought it to be the NORM_PRIORITY = 5.
Am I wrong?
Thanx
Sonali
Dear Robi
Great that u are preparing for the exm. I plan to give the examin June. I studied from "Complete java 2 Certification study guide" by Simon Roberts & Philip heller. Also got help from exam notes by Phil Heller. this is an excellent revision book. I also consulted Exam Cram by Bill Brogden.
hope this helps.,
Best Wishes
Sonali
Thanx abhimanyu for ur prompt reply. One more thing To the best of my knowledge we are not tested on Applets in the SCJP. but I found 2 questions on this in one of the mock exams pls help
Hi
I discovered this Question in one of the m0ck tests. it states
If one does not assign a priority to a Thread object,it assumes a priority of ----- by itself.
a) 0
b) 5
c) 1
d)none of the above
I thought the answer to be b) i.e. 5 but the test says it to be none of the above. Pls explain.
Thanx
Sonali
Thanx Jane, I'll look into it.I found ur forum very helpful.This was the first mail I had posted. I like reading other people quotes too. thanx
22 years ago
I cannot find answers to the Barry boone test. Will somebody pls mail me the answers at sonalisaxena@usa.net
22 years ago