Thread
:
Can main method be declared final?
View Single Post
#
2
(
permalink
)
08-28-2007, 01:24 AM
ragavraj
D-Web Programmer
Join Date: Feb 2007
Posts: 92
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
ragavraj
View Public Profile
Send a private message to ragavraj
Find all posts by ragavraj