Win a copy of Terraform in Action this week in the Cloud forum!

Srikanth Iyer

Ranch Hand
+ Follow
since Apr 30, 2007
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 Srikanth Iyer

When I try to register to the sun certification database it gives a message that no user found with the following criteria........

NO should i contact the thomsan prometric or any furthur clarification or contact sun via mail
Cool congrtas even i took the exam today and got 77%
14 years ago
Thank you ranchers for helping me clear scjp 1.4 my marks is posted in the results fourm......

Thank you one and all
Hi i took the exam today cleared it with 77%................

Could have got more made silly mistakes....

I would like to than all Ranchers for helping me....

This saloon is great keep up the good work and once agagn

"THANK YOU ALL"

14 years ago
Congratulaitons..........


During the exams scjp 1.4 is there is a quesiton on bitwise oprators or the shift operators will the binary value of the numbers be given???
14 years ago
During the exams scjp 1.4 is there is a quesiton on bitwise oprators or the shift operators will the binary value of the numbers be given???
Hi sarikaa

The orginal exam will always let you know how many correct options you got to choose..... so do not worry......
14 years ago
The answer is A)

but why not b)???

Please comment.............

Thank you in advacne
The code compiles in 1.5 but not in 1.4 is this because of autoboxing........
public class Abc{

private int x;

private int y;

public synchronized void setX (int i) (x=1

public synchronized void setY (int i) (y=1

public synchronized void setXY (int i) (setX(i) ; sety(i)

public synchronized Boolean check() { return x != y; }

}


A) check() can never return true.

B) check() can return true when setXY is called by multiple threads.

C) check() can return true when multiple threads call setX and setY separately.

D) check can only return true if Abc is changed to allow x and y to be set separately.


I think the check() method can never return true.

Please comment......................

Thank you in advance

class Tp
{
public static void main(String args[]) throws Exception
{
String a = "Blue";
Boolean b[] = new Boolean[1];
if(b[0])
{
System.out.println(a);
}
}
}


Sorry i was not able to get an 1.4 compiler...
The above code compiles fine in 1.5
IN the above code the FileNotFound exception is found and handeled by the catch method and thus the msg is printed. Then before the return statement the finally block gets excuted and then the return statement..


I hope it is clear now.......

That is if a return statment is embedded in the code inside the try or catch block, the code in the finally clause excuets before the return.