What is meant by constructor?

Answer Posted / ravikiran(aptech mumbai)

constructor is the one which is used to pass the
initializing parameters during instantiation

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 method overloading in JAVA? Why is it not present in C ?

596


What is 16 bits called?

507


What are the three parts of a lambda expression? What is the type of lambda expression?

580


Explain restrictions for using anonymous inner classes?

593


Can we catch more than one exception in a single catch block?

636






Why webdriver is an interface?

589


What is the different types of functions?

567


Does java map allow duplicates?

501


Can we restart a thread already started in java?

584


What are the types of casting?

603


Explain scope or life time of local variables in java?

569


Can a main method be overloaded?

582


What is java dot?

500


How will you add panel to a frame?

656


What is the use of pattern in java?

521