What is the output of this program?

class Literal6
{
public static void main(String[] args)
{
int x=10;
int y=010;
int z=0X10;
System.out.println(x+y+z);
}
}
/*
Output:- 34
Explanation:- 10+8+16=34

*/

0 comments: