What is meant by constructor?

Answer Posted / ajay yadav

Constructor is defined as a type of member function which
calls itself when an object is created also has the same
name as of the class.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of singleton pattern?

508


What is lastindexof in java?

532


What is Major and importance difference between for and foreach loop ?

565


Explain about map interface in java?

579


What is replaceall in java?

534






What does string [] args mean?

530


How do you make a thread in java?

619


What is a prefix function.write down a code to compute prefix function.

522


What is boolean example?

516


Can you override static methods?

496


What is difference between equal and == in java?

508


How to perform quicksort in java?

552


What is difference between adapter class and listener?

485


What does int [] mean in java?

522


Write a code to show a static variable?

599