Geethakrishna Srihari

Ranch Hand
+ Follow
since May 25, 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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Geethakrishna Srihari

Hi All,
I just passed SCJP with 96%...I plan to do SCEA as next step. For SCJP - K&B book was extremely useful...Are there books of Kathy Sierra and Bates for SCEA? Or what are the books to follow? And can you give me links for the overview of the exam.....

Thanks in Advance,
Geethakrishna
Usha,
refer this website:
http://www.danchisholm.net/

Thanks
Geethakrishna
12 years ago
I just read K&B...And Danchisolm materials....I got only around 70-80 in all my mock tests...K&B mock tests...given along with the K&B book and I tried most of the free mock tests in the link http://www.tryjava.com/mock.html
Other one is:
http://www.jdiscuss.com/
But one thing is sure....if we read K&B thoroughly we are sure to get 80%.
12 years ago
Today i wrote SCJP 1.4 exam and passedout with 96%....Cant believed my eyes when i saw the score...I prepared hard to pass the exam.....
Bye
Geethakrishna
12 years ago
The following code compiles:
class A
{
private int i;
public void modifyOther(A a1)
{
a1.i = 20;
}
}

The object has permission to use other object's private member ; it might be of same class - but is it not against OO? But this code compiles?
For the java version j2sdk1.4.1_06

The statement:
for ( ; false ; );

Gives unreachable error.

but previous versions gives no error...
For exam which is the correct answer? Or how should i approach?
class X extends Exception{}
class Z
{
static Object obj=null;
public static void main(String args[])
{
dun();

}
static int dun()
{
try
{
}
catch(X c)
{
}
catch(Exception e)
{
}
return 1;
}
}

This gives compiler error that X is never thrown

But the code:
class Z
{
static Object obj=null;
public static void main(String args[])
{
dun();

}
static int dun()
{
try
{
}
catch(Exception e)
{
}
return 1;
}
}
Comiles fine....How? Eventhough in try block exception is never thrown
Whether SCJP 1.4 tests the knowledge of methods of Collections.It is not covered in K&B - but present in many mock exams? Please some one clarify...Thanks
K&B - says :

"No. There isn�t a mechanism for marking an
object as undeletable. You can instead create a static
member of a class, and store a reference to the object
in that. Static members are considered live objects"

Does it not mean that static references are always live?

How garbage collection differs for static and non-static references?
1.Whether a static reference to an object if either reassigned or assigned to null, the object becomes eligible to garbage collection?

2.Whether a string if reassigned to another or assigned to null becomes eligible for garbage collection?
Yes Thats right, K&B book is good, but the question is whether the book completely covers the objectives....
Keshav,
If you know whats two's complement you can get the catch of the question...

No need to apply any manual steps:

-x == ~x + 1 : true

~x inverts all the bits
add 1 to it...we get -x..
I have the same doubt...Please any one clarify if K&B covers all the objectives of the SCJP exam...In some mock tests i found some questions based on static , non static block, operator precedence ( based on JLS) (visit http://www.go4java.20m.com/mock1.htm as well as mock2.htm)....Whether these are in Objectives of SCJP....Thanks in Advance...Please clarify....
But why B is printed twice? Even if thats the case A followed by B shud be, and not B twice? Please clarify