Can any identifier be start with digit?
class Identifier2
{
public static void main(String alt[])
{
int 123total=10;
System.out.println(123total);
}
}
/*
O/P:- Compilation Error
Explanation :- Identifiers should not start with digit.
*/
{
public static void main(String alt[])
{
int 123total=10;
System.out.println(123total);
}
}
/*
O/P:- Compilation Error
Explanation :- Identifiers should not start with digit.
*/
0 comments: