Explain role of constructor in a java application?

Answer Posted / harsh

Constructor is "object creator".
its role is to create objects thats it.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a boolean method return?

636


Can we assign null to double in java?

555


Difference between object instantiation and construction ?

587


What is arraylist e in java?

522


What is threaded programming and when is it used? : Java thread

536






How can you read an integer value from the keyword when the application is runtime in java? example?

627


Why we use methods in java?

544


Does windows 10 need java?

600


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1535


What is the formula to calculate percentage?

540


Are arrays dynamic in java?

541


What is mysql driver class name?

556


Can keyword be used as identifier?

550


What is a Null object?

894


what r advatages of websphere? & how to deploy?

1641