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


Please Help Members By Posting Answers For Below Questions

What is the meaning of variable in research?

555


What do you understand by java virtual machine?

702


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

535


What is string pool?

623


What is class and its types?

535






What is the purpose of main function in java?

533


How does hashmap work in java ?

539


Can a static class have a constructor?

515


What are conditionals and its types?

579


How to sort double array in java?

583


What is type conversion in java?

571


What is gc()?

576


Is null an object java?

533


Why is multiple inheritance not supported in java?

557


How many types of parsers are there?

540