Answer Posted / suman blazta
Constructors are used to create and initialize objects of their class type.
Constructor is a special member function that takes the same name as the class name.The constructor is automatically named when an object is created. A constructor is named whenever an object is defined or dynamically allocated using the "new" operator.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are multiple inheritances? Is it supported by java?
what is encapsulation in java? Explain
Which class is used by server applications to obtain a port and listen for client requests?
Explain some best practices you would apply while using collection in java?
What does exp mean in math?
Can you declare a private method as static?
Why java is said to be pass-by-value ?
What is basic syntax?
How to create a base64 decoder in java8?
List the different types of classloaders in java.
How does the java compiler work?
What is difference between jdk,jre and jvm?
How use .contains in java?
Is java a prime method?
Describe string intern() methodology