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
Can you run java program without main method?
What’s the difference between the methods sleep() and wait()?
define the terminology association.
How to display names of all components in a Container?
Is hashmap thread safe?
What is the difference between C++ and Java and your preferences?
State the main difference between c++ and java?
What are the four corner stones of oop?
What is difference between protected and private?
What are the different data types in java?
Can we print null in java?
What all access modifiers are allowed for top class ?
Explain the protected field modifier?
What is meant by vector class, dictionary class, hash table class, and property class?
What is empty string literal in java?