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 are the advantages of user defined functions?

553


Can we override constructor in java?

574


What do you meant by active and passive objects?

605


What are structs in java?

568


What is the order of arraylist in java?

603






How to check if linked list contains loop in java?

457


Can we force the garbage collection to run?

534


What is string array?

572


What are internal and external variables?

542


What does it mean that a class or member is final?

557


Write a java program to generate fibonacci series ?

568


Explain how to force the garbage collection in java.

529


Can anonymous class have constructor?

550


What is a variable in java?

528


Why webdriver is an interface?

577