What is meant by constructor?

Answer Posted / ravikiran(aptech mumbai)

constructor is the one which is used to pass the
initializing parameters during instantiation

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class with private constructor be extended?

687


What is the original name of java?

769


What is the difference between preemptive scheduling and time slicing in java programming?

762


Can we write class inside a class in java?

733


What does pointer mean?

749


How do you make an arraylist empty in java?

673


What is singleton class and how can we make a class singleton?

864


Explain about sets?

752


What is difference overloading and overriding?

795


What is void keyword?

855


What is the difference between a field variable and a local variable?

768


What is the function of java?

724


What does string intern() method do?

819


What is math in java?

809


What are the methods used to implement for the key object in the hash map?

778