chetna jain

Greenhorn
+ Follow
since Nov 08, 2001
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 chetna jain

I am not getting what they have written in the link u provided. i'll be grateful if u help me out in this question
Thanx a lot for replying me u gave me very good explanation
i got it.
thanx a lot again
class Test1
{
public static int[ ] getArray() { return null;
}

public static void main(String[] args)
{
int index = 1;
try
{
getArray()[index=2]++;
}
catch (Exception e){ } //empty catch
System.out.println("index = " + index);
}

}

i am not getting this question to what will be the output

pls help me out.

class Test
{
public static void main(String[ ] args)
{
int[] a = { 1, 2, 3, 4 };
int[] b = { 2, 3, 1, 0 };
System.out.println( a [ (a = b)[3] ] );
}
}
When we compile it and run it the output is 1. i am not getting why it is happening pls help me out.
thanx a lot for replying as i was really confused in this aspect
pls help me out whether Math.round(6.2) and Math.floor(6.2) will return same values. as acc to me the first one will return 6 while second wil return 6.0 that is first returns long value and second returns double value. Acc. to airthmetic 6 and 6.0 are same but i think acc. to java they r different what all of u say?