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
What is a databasemetadata?
What is the difference between applet and application?
How to implement an arraylist in java?
What type of variable is gender?
What are thread groups?
What comes to mind when someone mentions a shallow copy in java?
How do you start a thread?
What is byte code and why is it important to java’s use for internet programming?
Is an empty arraylist null?
How many boolean functions are there?
Can you extend singleton class?
how does the run() method in runnable work? : Java thread
What is thread pool? How can we create thread pool in java?
What is the importance of static variable?
If two threads have same priority which thread will be executed first ?