What is the difference between constructor and method?

Answer Posted / shadow

Constructor will be automatically invoked when an object is
created whereas method has to be called explicitly. ...!

$HADOW

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is treeset sorted in java?

579


Give an example of use of pointers in java class.

563


How do you get length in java?

557


Which class represents the socket that both the client and server use to communicate with each other?

574


Which containers use a flowlayout as their default layout in java programming?

509






Does java allow default arguments?

592


Differentiate between == and equals().

597


Write a java program for binary search?

609


how to handle exceptions in ejb?

1875


Can a class have more than one object?

528


What are some characteristics of interference class?

517


Is oracle charging for java?

548


What is the difference between serializable and externalizable interfaces?

569


What is OOP Language?

630


Define how objects are stored in java?

565