What is constructor

Answer Posted / mahesh

constructor is similar to a method.
*constructor name ,class name should be same
*constructor have a parameters
*does not return any value

*

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 java and its types?

547


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

571


What is the difference between access specifiers and access modifiers in java?

567


What are the restrictions that are applied to the java static methods?

522


What is use of inner class in java?

512






Define packages in java?

576


What is a string what operation can be performed out with the help of a string?

502


What is merge sort in java?

577


worst case complexities of Quick sort and Merge sort.

593


How to compare strings in java?

497


What is bubble sort in java?

612


What are the differences between throw and throws?

521


Explain the concept of proper inheritance?

613


How do you ensure that n threads can access n resources without deadlock?

807


Tell us something about different types of casting?

515