No products in the cart.

What is an identifier? what is …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

What is an identifier? what is the identifier forming rule of Java
  • 1 answers

Gaurav Seth 6 years ago

Identifiers or User Define Words:-

Identifiers will be used as class variables methods etc while naming the identifiers or user define words remember the following paths-

1. Keywords cannot be used as identifiers.

2. Identifier must not start with any numeric or it is always recommendable to starts some of the identifiers with small case.

3. It must not contain any special symbol other than (_ or $).

4.Identifier must not contain any blank space in between.

5.Identifiers may contain numeric but it should not be in starting.

For e.g. –

int ab; //ok

int a_b; //ok

int a b; // not ok

class Hello{

int a;

int ab;

http://mycbseguide.com/examin8/

Related Questions

Case study questions of chapter 1
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App