Answer Posted / sameer inamdar
Constructor is a method like other methods but it has
the same as the class name and it has no any return type
not even void.
Connstructor is invoke only once at the time of object
creation. We can overload the constructor.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Is singleton thread safe in java?
What is flag in python?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Can a vector contain heterogenous objects?
What are the different ways of creating thread?
If I only change the return type, does the method become overloaded?
Which access specifier can be used with class ?
What is the purpose of final keyword and when to use it?
What is a generic data type?
Can one thread block the other thread?
What is the exact difference in between Unicast and Multicast object?
What is Java Reflection API? Why it’s so important to have?
What is a string token?
What is bubble sort in java?