Differentiate constructor and a method and how are it be
used?
Answer Posted / devarathnam c,kotagudibanda(po
Hi...
Constructor(): It is also a method but it doesnot allow
return type even void also.It will call automatically
whenever an object is created of a appropriate class.
But class name and constructor should be the same.d
Method():U have to call explicitly .
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the best definition for data?
Can we catch more than one exception in a single catch block?
Explain tree set and its features?
What is java oops?
What is member in java?
What are the benefits of operations?
why using interface interface ?
What is stream api in java8?
Is string a data type in java?
What are the ways to instantiate the class class?
Do you know why doesn't the java library use a randomized version of quicksort?
Explain jdk, jre and jvm?
What do u mean by variable?
What is meant by binding in rmi?
Name and explain the types of ways which are used to pass arguments in any function in java.