What is the output of this program?

class Literal5
{
public static void main(String[] args)
{
int i=0xBeer;
System.out.println(i);
}
}
/*
Output:- Compilation error
Explanation:- In hexadecimal number, allowed digits are 0 to 9 and a to f . "r" will not allowed here.

*/

0 comments: