huajiangwei

Greenhorn
+ Follow
since Jul 24, 2001
Merit badge: grant badges
For More
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 huajiangwei

I think c is array, it belongs to the declaration int[], isn't it? but I am not sure.

Originally posted by lakshmi panda:
hi
i was going thru one of the mock exams onthe net .there was a q's which was as follows
Q3.Which of the given choices are true?Select any two.
1 class Q3
2 {
3 public static void main(String arg[])
4 {
5 int[] a,c,d[];
6 int b[]=new int[0];
7 }
8 }
options :
1) All the variables a,b,c,d are arrays.
2) Only a,d,b are arrays.
3) We can declare an array with zero element.
4) We cannot declare an array with zero element.
i thought the answers were 2& 3 but when i checked it was as 1 & 3. please let me know whether i am correct or not and why in case i am wrong .
Thanks is advance
Lakshmi


I am doing a mock test from : http://members.theglobe.com/apoddar/questions.html
for question #25 , it says,
float f4 = -5.5f;
float f6 = -5.49f;
after round, both f4 and f6 should be "-5" , I am confused, how can they be same?
Thanks!