pradeepa venigalla

Greenhorn
+ Follow
since Oct 13, 2005
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 pradeepa venigalla

Even Iam going to attempt the exam on 31st of this month..

I have gone through the k&b book but didnot practice the exams..
I will always be in a hurry to answer the qns and commit silly mistakes...

Wish u gud luck for ur exam... dont be in a hurry as like me...
Marc thanks for the response...

I knew about the bitwise operators.. but i was thinking abt logical operators and posted it in a hurry..

sorry about this..
What gets displayed on the screen when the following program is compiled and run. Select the one correct answer.

public class Test {
public static void main(String args[]) {
int x,y;
x = 3 & 5;
y = 3 | 5;
System.out.println(x + " " + y);
}
}


a.)7 1
b.)3 7
c.)1 7
d.)3 1
e.)1 3
f.)7 3
g.)7 5

Can anyone explain me the answer for this.. I found it on internet when I was trying to attempt some mock exams..

Thanks in advance
Thanks guys..,

Now I understood the concept....
The answer is given as e. (but the explanation is not given)

ok what would be the answer if we change the code for the same qn?

public class test {
public static void main(String args[]) {
System.out.println(args[0]+" "+args[args.length]);
}
}
What gets printed on the standard output when the class below is compiled and executed by entering "java test lets see what happens". Select the one correct answer.

public class test {
public static void main(String args[]) {
System.out.println(args[0]+" "+args[args.length-1]);
}
}


a.)The program will throw an ArrayIndexOutOfBounds exception.
b.)The program will print "java test"
c.)The program will print "java happens";
d.)The program will print "test happens"
e.)The program will print "lets happens"

Can anyone explain me the answer for this?

Thanks in advance
Did you try Kathy Sierra & Bert Bates book...
Tat's the good one.. You never feel bored..
I don't know much abt Head First Java..
By the way are you planing to take SCJP1.4 or the upgrade version..
Hi

You dont have to wait for the cd. When you order Whizlabs they take a day to process your order and to verify your information. Then they give you the license number so that you can download the Whizlabs online using the license. Its pretty easy to get the Whizlabs. Personally I recommend Whizlabs for SCJP.

Pradeepa.
when wait() is called, one of four things occur:
-another thread invokes the notify() method for this object and
the scheduler arbitrarily chooses to run the thread
-another thread invokes the notifyAll() method for this object
-another thread interrupts this thread
-the specified wait() time elapses
when one of the above occurs, the thread becomes re-available to the Thread scheduler and competes for a lock on the object once it regains the lock on the object, everything resumes as if no suspension had occurred..

So waiting method becomes runable only after it releases lock.
Congratulations

Can you just tell us how you practiced the concepts with in 10dys..

This would help me alot..

Thanks
15 years ago
Congratulations Ramesh
15 years ago
Hello Craig,

Congrats

Thats a good score....

Pradeepa
15 years ago
Hello Zywno,

Congrats

Pradeepa
15 years ago
Hello Santosh,

Vow.. ... Awesome Score ....

Congrats...

Pradeepa...
15 years ago
Hi,

I have booked for SCJP 1.4 in Aug 2005. Still I didnot take the exam due to various reasons. So, Iam planing to take it in the mid of march. At that I got the details as

Exam Title: Sun Certified Programmer for the Java 2
Platform 1.4
Product ID: CX-310-035

Hope it will help you to figure out something.

Thanks
Pradeepa.