Narayana Tutorial

Online Java Tutorial Blog

Tag: Consturctor

What is the difference between Static Block and Constructor placed in a class?

  What is the difference between Static Block and Constructor¬†placed in a class?   Static Block Static block of a java class executes for only one time when JVM loads the class irrespective of whether object is created for class or not and whether java class is having main method or not. So static block […]

Narayana Tutorial © 2016 Frontier Theme
Show Button
Hide Button