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 return in java?
Difference between error and exception
What do you understand by final value?
What are java packages? What's the significance of packages?
How can we avoid including a header more than once?
What is floor in java?
Can we write a class without main method in java?
What are the benefits of operations?
What is static and final keyword in java?
explain different ways of using thread? : Java thread
Difference between arraylist and hashset in java?
What is the impact of declaring a method as final?
How do you compare two objects?
How to instantiate member inner class?
What is the difference between yielding and sleeping in java programming?