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:
http://www.javajazzup.com/issue2/page33.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Tips & Tricks
Post your Comment