Here are some basic implementations of java language, which you would like to know. Have a look at the given program below. Found anything unusual?? You got it right! The program below runs without the main method. Here we have used the static block that executes the class directly as soon as it gets loaded without creating any object for it.
Now, read more at:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Tips & Tricks
Post your Comment