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 a databasemetadata?

732


What is the difference between applet and application?

747


How to implement an arraylist in java?

722


What type of variable is gender?

758


What are thread groups?

762


What comes to mind when someone mentions a shallow copy in java?

897


How do you start a thread?

780


What is byte code and why is it important to java’s use for internet programming?

827


Is an empty arraylist null?

808


How many boolean functions are there?

740


Can you extend singleton class?

859


how does the run() method in runnable work? : Java thread

705


What is thread pool? How can we create thread pool in java?

841


What is the importance of static variable?

805


If two threads have same priority which thread will be executed first ?

1156