why the constructor should be used in class,if there is no
constructor what will happen?

Answer Posted / devarathnam c,kotagudibanda(po

Hi... Nothing will happen the compilet will supply the
default constructor of the class.Normally canostructor can
be used to instantiate an object.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does \ mean in regex?

624


What is the main purpose of serialization in java?

530


Are registers volatile?

533


What is meant by inheritance and what are its advantages?

581


How would overload a function based on return type?

552






Can we assign integer value to char in java?

511


Can I learn java without any programming experience?

561


What is polymorphism in java? What are the kinds of polymorphism?

582


Explain importance of finally block in java?

586


How to create com object in Java?

651


What is polymorphism java example?

548


What is difference between fail-fast and fail-safe?

588


What is backdrop?

596


What is nan in java?

520


if u open login & logout ,how can udisplay the timelogin & logout members ?

1756