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 the meaning of variable in research?
What do you understand by java virtual machine?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What is string pool?
What is class and its types?
What is the purpose of main function in java?
How does hashmap work in java ?
Can a static class have a constructor?
What are conditionals and its types?
How to sort double array in java?
What is type conversion in java?
What is gc()?
Is null an object java?
Why is multiple inheritance not supported in java?
How many types of parsers are there?