Constructor & Passing Information to Constructor

Advertisements
Advertisements
Advertisements3
Advertisements4
Advertisements6
Advertisements66

1.Can a constructor have a return type in Java?

Ans. No.

2. _____ keyword is used to call a constructor from another constructor in Java?

Ans. this.

 
 

Author: Lakshmi Prasanna Ponnala

Completed M.Tech in Digital Electronics and Communication Systems.

Leave a Reply

error: Content is protected !!

Discover more from ece4uplp

Subscribe now to keep reading and get access to the full archive.

Continue reading