What is the output of this program?
class Literal27
{
public static void main(String[] args)
{
int i=1__2___3____4;
System.out.println(i);
}
}
/*
Output:- 1234
Explanation:- We can write any number of underscore between the digits.
*/
{
public static void main(String[] args)
{
int i=1__2___3____4;
System.out.println(i);
}
}
/*
Output:- 1234
Explanation:- We can write any number of underscore between the digits.
*/
0 comments: