what is the logic inside any default constuctor?

Answer Posted / meena

The default constructor initializes all the variables
declared inside the program to default values.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create a class inside a class in java?

535


what is a thread pool in java and why is it used?

518


what is the difference between yielding and sleeping? : Java thread

514


What is the difference between Java and C++?

600


Mention the default values of all the elements of an array defined as an instance variable.

506






Explain the significance of class loaders in bootstrap?

484


What state does a thread enter when it terminates its processing in java programming?

565


Is zero a natural number?

551


How many types of flags are there?

509


What is a instance variable?

572


What are the supported platforms by java programming language?

547


Why is string builder not thread safe?

583


Why wait and notify methods are declared in object class?

592


Explain the inheritance?

558


How do you reverse a word in java?

518