Monday, 13 February 2012

Tips Need To be remembered for OCJP Exam :

 1.> There should only one public class per source file.

 2.> There can be any number of default class in a single source file 

 3.> Class can be declared only as default or public because if it declared as private it will not be available to JVM. 

4.> If there are two are more class are present in a single source file then if we compile that source file it will be segregated into several dot class files each with file name and its corresponding source code in form of bytes.

5.> A class which is declared as public in a source file should have same name as the file name.

No comments:

Post a Comment