Constructor does not perform other tasks instead of initialization - Core Java

Q.  Constructor does not perform other tasks instead of initialization
- Published on 10 Jul 15

a. True
b. False

ANSWER: False
 

    Discussion

  • harsh gangwar   -Posted on 20 Apr 16
    Instead of initializing an object constructor does other works also like object creation, starting a thread, calling method etc. You can perform any operation in the constructor as you perform in the method.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)