Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Can I write a Java program without main method ?

Yes, We can Write a Java Program without main method by using static block, only in java version 6. But not possible in later versions like java 7 or 8.
Before going to discuss "How to write a java program without main method", let's get an idea about the programs, which are running without main method.
Read more »
©JavabynataraJ is a blog with java tutorials and Real time tips.


This post first appeared on JAVAbyNATARAJ, please read the originial post: here

Share the post

Can I write a Java program without main method ?

×

Subscribe to Javabynataraj

Get updates delivered right to your inbox!

Thank you for your subscription

×