how to execute a program without main().
}
Output –
- PROGRAM :
- public class First
- {
- public static void main()
- {
- System.out.println("It is overloaded main.....");
- }
- static
- {
- main();
- }
- public static void main(String args[])
- {
- System.out.println("It is invoked by JRE");
- }
- }
Output –
Signature of
Method –
modifier returnType methodName(Argument list)
{
-------------
-------------
-------------
}
No comments:
Post a Comment