This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!

Rachel Malhotra

Greenhorn
+ Follow
since Dec 09, 2000
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 Rachel Malhotra

Wish you all A very happy and prosperous New Year!
Rachel
Hi!
By modifying a class or a method with strictfp, it is ensured that floating point calculations take place precisely. as they did in earlier versions of JAva.
HI!
1.outer: for( int i = 1; i <3; i++ )
2. { inner: for( j = 1; j < 3; j++ )
3. { if( j==2 )
4. continue outer;
5. System.out.println( "i = " +i ", j = " + j 6. );
7. }
8. }
In the above code, the variable i takes the values:1 and 2. Simmilarly, the variable j takes its values as 1 and 2.
Now acording to the code, when the value of j is equal to 2, the outer loop is continued. So the answers are options a and d, as the starting value of both i and j is 1 and that is printed, then the value of i and j becomes 2, so here the line 4 comes into play as j equals to 2 and the inner loop is abandoned. So there are only two correct answers- a and d.
I hope this helps,
Rachel.
Hi!
I wanted to know that whether CardLayout is a part of the certification exam or not. And also if some one could guide me about the good link to GridBagLayout manager.
Thanks in advance,
Rachel.
Hi!
I wanted to know that whether CardLayout is a part of the certification exam or not. And also if some one could guide me about the good link to GridBagLayout manager.
Thanks in advance,
Rachel.
Thanks Guys , you were of great help
Rachel
Hi Everybody!
I just wanted to know that where can i find a suitable matter regarding Garbage collection that is needed for certification.
Hi Himanshu!
What exactly do u wan't to talk about in packages?
Thanks for your details
Rachel
Hi everybody!
Please help me out with this code:

//this is th code
class HexByte{
static public void main( String args[]){
char hex[] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
byte b = (byte)oxf1;
System.out.println("b = ox" + hex[(b >> 4) & oxof] + hex[b & oxof]);
}
}
//code ends here
Please tell me why are we using theand operator here and would you also explain me about the code inside System.out.println() line.
Rachel
Hi!
I wanted to ask that what happens if we initialise the same thread twice.

Hi everybody!
I wanna ask that what will happen if we initialise the same thread twice.
Hi
I would suggest that you should complete the syllabus first and then do some mock exams. Thta way, you'll come to know , in which topics you are weak and that will give you a help in concentrating more on those topics. No mock exams can be identical to the real exam. Mock exams are for judging one's status in every topic.

Hi
Your code is:
1. class oper{
2. public static void main(String s[]){
3. int array[] = new int[5];
4. int index = 0;
5. array[index] = index = 3;//problem here
6. for (int c = 0; c < array.length; c++)
7. System.out.println(array[c]);
8. System.out.println("index is " + index);
9. }
10. }

I am getting the answer :
3
0
0
0
0
index is 3
In this code first of all line 3 is executed, which creates an array of length 5. Then in line 4 the value of the index of the array is initialised to 0. after that the the value of index =3 is assigned to array[index].when the for loop is executed, the first of all the value 3 of array[c] is printed and then the other values that is o is printed till the condition is valid.
and therefore, the value of array as printed is:
3
0
0
0
0
and the for the las line of the code the value of index is 3.