What is the output of this program ?
class Literal2
{
public static void main(String[] args)
{
int i=0786;
System.out.println(i);
}
}
/*
Output:- CE[Integer number too large]
Explanation:- In octal number, only allowed digits are 0 to 7.
*/
{
public static void main(String[] args)
{
int i=0786;
System.out.println(i);
}
}
/*
Output:- CE[Integer number too large]
Explanation:- In octal number, only allowed digits are 0 to 7.
*/
0 comments: