Answer Posted / guest
constructor is special method with the class name and
without any return value.
whenever the object is created the constructor is called
automatically according to the argument passed.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of the runtime class in java programming?
How do you identify if jvm is 32-bit or 64-bit from java program?
What is the difference between error and an exception?
What is difference between string and new string?
Give us a program to check for parenthesis matching using stack.
Difference between notify() method and notifyall() method in java?
What are the advantages and disadvantages of reference counting in garbage collection?
why java does not support unsigned keyword?
Can we make main() thread as daemon?
What is module with example?
Is singleton thread safe in java?
Why are pointers not secure?
In a class implementing an interface, can we change the value of any variable defined in the interface?
How do you escape in java?
What are benefits of java?