What is constructor

Answer Posted / guest

constructor is special method with the class name and
without any return value.

whenever the object is created the constructor is called
automatically according to the argument passed.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is considered as platform independent?

678


what is the difference between process and thread? : Java thread

644


Define Multiprogramming and Multiprocessing in java.

675


What does this () mean in constructor chaining concept?

674


Why java is call by value?

658






Is set ordered?

632


What are runtime exceptions?

725


What are dot operator queries?

721


How to sort an array in java without using sort method?

614


How does queue work in java?

616


What is set string?

672


What is number data type?

626


Define reflection.

643


Explain the difference between serializable and externalizable in java?

624


How transient variable is different from volatile variable?

650