Differentiate constructor and a method and how are it be
used?

Answer Posted / arunji,shc

constructor it should be same name of class but method name
is userdefined.
when the object created constructor call automatically but
method through the object have to call.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is output buffer?

572


How we can generate random numbers in java?

612


Which number is denoted by leading zero in java?

815


Difference between this() and super() in java ?

620


Is java owned by oracle?

528






Which sorting is best in java?

542


What are the application of stack?

506


What two classes are used to read data only?

645


What is preflight request?

532


Why are global variables used?

511


Explain the difference between protected and default access.

518


What do you mean by global variable?

531


Can java list contain duplicates?

576


Is java an open source?

530


explain copyonwritearraylist and when do we use copyonwritearraylist?

549