Rule 3: identifiers are not allowed to starts with digit. Rule 2: If we are using any other character we will get compile time error. Rules to define java identifiers: Rule 1: The only allowed characters in java identifiers are: 1) 2) 3) 4) 5) It may be class name, method name, variable name and label name. Identifier : A name in java program is called identifier. Length Vs length() method Anonymous arrays Array element assignments Array variable a ssignments of variables o Primitive variables Reference variables o Instance variables o Static variables o Local variables o Conclusions o Un initialized arrays Instance level o Static level o Local level o Var arg method Single Dimensional Array Vs Var-Arg Method o Main method 1.7 Version Enhansements with respect to main() o Command line arguments a rguments Java coding standards Coding standards for classes o Coding standards for interfaces o Coding standards for methods o Coding standards for variables o Coding standards for constants o Java bean coding standards o Syntax for setter method Syntax for getter method Coding standards for listeners o To register a listener To unregister a listener Various Memory areas present inside JVM Array declaration, construction, initialization in a single line. Array construction co nstruction Multi dimensional array creation 4. Array declaration Single dimensional array declaration Two dimensional array declaration Three dimensional array declaration 3. Literals Integral Literals o Floating Point Literals o Boolean literals o Char literals o String literals o 1.7 Version enhansements with respect to Literals o Binary Literals Usage of _ (underscore)symbol (underscore)symbol in numeric literals 6. Data types Integral data types o Byte Short Int long o Floating Point Data types boolean data type o o Char data type Java is pure object o bject oriented programming programming or o r not ? o Summary of java primitive data type o 5. Reserved words Reserved words for data types: (8) o Reserved words for flow f low control:(11) o Keywords for modifiers:(11) modifiers:(11) o Keywords for exception handling:(6) o Class related keywords:(6) keywords:(6) o Object related keywords:(4) o Void return type keyword o Unused keywords o Reserved literals o Enum o Conclusions o 4. Identifiers Rules to define java iidentifiers: dentifiers: o 3. Core Java with SCJP/ OCJP Notes By Durga SirĭURGASOFT, # 202,2n Floor,HUDA Maitrivanam,Ameerpet, Hyderabad - 500038, 040 – 64 51 27 86, 80 96 96 96 96, 9246212143 | Core Java with SCJP/ OCJP Notes By Durga Sir
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |