What is identifier with example?



What is identifier with example?..

Answer / Devesh Tripathi

An identifier is a name given to a variable, function, class, or other programming construct in Core Java. Identifiers must follow certain naming rules, such as starting with a letter, underscore, or dollar sign, and cannot contain spaces. An example of an identifier might be 'myVariable', 'myFunction', or 'MyClass'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we have two methods in a class with the same name?

1 Answers  


What do you mean by platform independence?

1 Answers  


1.what is the exact difference between applet and frame? 2.Do we use main method in frames?

5 Answers  


What are parent methods and how can you call them?

2 Answers  


I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?

4 Answers  


Write a java program to check if a number is prime or not?

1 Answers  


What is the purpose of the File class?

3 Answers  


What is variable and its types?

1 Answers  


What is formatted output?

1 Answers  


What is adapter class?

12 Answers  


What is proper subset?

1 Answers  


Can a main method be overloaded?

1 Answers  


Categories