Java for Interviews (Core Java - II)
Core Java - II:
Constructor:
A constructor is a block of code-like methods. It is called when an instance of a class is created. When the constructor is called, the memory for the object is allocated in heap memory.
2-types → No-arg constructor, Pa...
aloysius05.hashnode.dev6 min read