7
Identifiers Reserved keywords Data types Literals Arrays Types of variables Var arg method Main method Command line argument Java coding standards

Durga Corejava _ Preparation

Embed Size (px)

DESCRIPTION

hi

Citation preview

IdentifiersReserved keywordsData typesLiteralsArraysTypes of variables Var arg methodMain methodCommand line argumentJava coding standards

Java sourcefile structures

Class modifiers

Member modifiers

Interfaces

Import statementStatic importPackage statementJava file structurePublic classes default classes final modifier final classAbstract modifier Abstract class Strict fpPublic member Default member protected memberprivate memberfinal variablesstatic modifier Native modifier sychronized modifier Transient ModifierVolatile modifier Interface declaration and implementationsExtends vs implementsinterface methods and interface variables

a) interface naming conflictsb) Variable naming conflicts

Marker interface adapter class interface vs abstract vs concrete class Diff between interface and abstract class conclusions

publicdefaultfinal

abstract

strict fp

protectedprivate

staticnativesynchronizedtransientvolatile

Increment and decrement operatorArthematic operatorString concatenatiomn operatorRelational operatorEquality operatorInstance of operatorBitwise operatorShort circuit operatorsType cast operator Assignment operatorConditional operatorNew operator[] operatorJava operator precedenceEvalutaion order of java operands

IF else Switch

While Dowhile for for each

breakcontinuereturntry catch finally assert

Run stack mechanism Default exception handling in java Exception hirarchy customised exception handling by try catch control flow in try catchmethods to print excetion informationtry with multiple catch blocks finally diff between final , finally and finalizecontrol flow in try catch finally control flow in nested try catch finally Various possible combinations of try catch finallythrow keyword throws keywordexcetiopnal handling keyword summaryvarious possible compile time errors in EHCustomised exceptionstop 10 exceptions