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:
Liked it! Share this Tutorial