View Single Post
  #2 (permalink)  
Old 08-28-2007, 01:24 AM
ragavraj ragavraj is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 92
ragavraj is on a distinguished road
Default Re: Can main method be declared final?

Hi

Yes, the main method can be declared final, pls try this code

PHP Code:
class example
{
  public static final 
void main(String args[])
  {
    
System.out.println("Testing");
  }

Thanks
Reply With Quote