Friday, October 19, 2012

Idetifiers

Rules for defining Identifiers
1) A java identifier is a sequence of characters, where each character may be a letter from a-z or A-Z
or a digit form 0-9 or currency symbol $ or connecting punctuation – , if we are using any other
symbol we will get Compile time error “IllegalCharacter”.
2) Identifier should not be starts with digit.
3) There is no length limit for java identifiers but it is not recommended to take more than 15
length.
4) Java Identifiers are case sensitive
Ex:
class FundaDemo
{
public static void main(String[] args)
{
int String = 10;
System.out.println(String);
}
}
O/P:- 10

2 comments:

  1. Casino Site » Login the Lucky Club Live casino! - Luckyclub
    Lucky Club Live casino, is operated by Digimedia, an award-winning operator luckyclub.live and part of Digimedia. The operator is licensed by the Gambling

    ReplyDelete
  2. Harrah's Cherokee Casinos - Mapyro
    Find 순천 출장안마 the 서울특별 출장샵 BEST 평택 출장샵 casinos and resorts in Cherokee, NC on Mapyro. Harrah's Cherokee Casino Resort in 울산광역 출장안마 Cherokee offers 2100 아산 출장안마 rooms, a 24-hour casino,

    ReplyDelete