Is it a valid identifier in Java ?<br /> <br /> int 123Abc = 5;

Search Interview Questions

 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text


Interview Questions and Answers

 Q1. Is it a valid identifier in Java ?

int 123Abc = 5;
Core Java
Ans. No, identifier in java cannot start with a numeral.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     identifiers

Related Questions

 Is synchronized a keyword , modifier, identifier? what is it ?
 What is a difference between Identifier and keyword ?
 Can we use java keywords as identifiers ?
 Can we use true and false as identifiers in java ? Are they keywords in Java ?
 What are the some literals in java that are reserved and hence cannot be used as identifiers ?
 What is the difference between keywords, identifiers and literals in java ?
 Why cant we start an identifier with a number in Java?

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: