Hi,
Consider this simple code :
public class MyTest {
private static void main ( String [] args ) {
System.out.println ( "Hello friends!" ) ;
}
}
Output on jdk1.2.2 WinNT :
Hello friends!
The fact :
All of us know, private members/methods are accessible from within the class only.
My doubt :
Could someone plz clarify, how does java interpreter able to execute main() method even it is defined private ?
Thanks.
Hemant.