Class Kap
{
public static void main(String args[])
{
int x= 011;
int y= 02;
System.out.println(x+","+y);
}
}
what will be out put?
a: 011,02
b: 9,2
c:02,011
d:ERROR???
{
public static void main(String args[])
{
int x= 011;
int y= 02;
System.out.println(x+","+y);
}
}
what will be out put?
a: 011,02
b: 9,2
c:02,011
d:ERROR???
9,2
ReplyDeleteBecause o is preceding. so it became octal
right...
Delete