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 happens if main method is not static?
What is Major and importance difference between for and foreach loop ?
What technique can be employed to compare two strings?
How are the elements of a gridbaglayout organized in java programming?
can I implement my own start() method? : Java thread
What do you mean by append?
Can we sort set in java?
design an lru cache in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
Give the difference between the println method and sqrt method?
What do you understand by looping in java? Explain the different types of loops.
What is string and its types?
Can we use switch statement with strings?
Is null an object in java?
What is methods in java?