Tushar Matkar

Greenhorn
+ Follow
since Mar 09, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tushar Matkar

Here is a question from KamExam Question Bank :
public class KamFor
{
public static void main(String argv[]){
int i;
int j;
outer:
for (i=1;i <3;i++)
inner:
for(j=1; j<3; j++) {
if (j==2)
continue outer;
System.out.println("Value for i=" + i + " Value for j=" +j);
}
}
}
1) Value for i=1 value for j=1
2) Value for i=2 value for j=1
3) Value for i=2 value for j=2
4) Value for i=3 value for j=1
What is the output and how did u get it ? . Please explain step by step .
Tushar Matkar
Hello Guys ,
I am Tushar Matkar . I am too preparing for my SCJP Exams and hope to appear for the test in first week of April . I am currently going thru a second round of RHE and planning to go thru a KH once . What more do u suggest for a better and confident preparation .
I wish to join the group . Tell me how do i join all u guys on to this forum
The problem is as such :
The numbers given are

1. int a = 056;
2. int b = 034;
3. System.out.println(a);
4. System.out.println(b);
What will the output be ? . Please explain the convertion from Octal to Decimal .
Mail me the reply at [email protected]