What is the constructor?
Answer / Mohammad Ayub
A constructor in Java is a special method that is used to create and initialize objects of a class. Constructors have the same name as the class, no return type (except void for an error situation), and can be overloaded by having different numbers or types of parameters. The default constructor is automatically generated if you don't provide one explicitly.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are abstract classes and anonymous classes?
1 Answers Flextronics, Thomson Reuters, Virtusa,
What is map in java?
What is anti pattern in cyber security?
What is Exception handling in Java How do you handle run time errors please explain with an example
Are primitives objects?
What is the basic concept of java?
What is the r character?
Explain about serializable interface in java?
How does a cookie work in Servlets?
How the elements are organized in BorderLayout?
What is a resource leak ?
What are byte codes?