why the constructor should be used in class,if there is no
constructor what will happen?
Answer Posted / devarathnam c,kotagudibanda(po
Hi... Nothing will happen the compilet will supply the
default constructor of the class.Normally canostructor can
be used to instantiate an object.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Does constructor return any value?
Explain the difference between serializable and externalizable in java?
What is a numeric literal?
Explain differences between collection api and stream api?
What is method overloading in JAVA? Why is it not present in C ?
Why is the main method declared static?
What is mysql driver class name?
What is a boolean output?
Can we have try without catch block?
What happens when a thread cannot acquire a lock on an object in java programming?
What are byte codes?
What is a ternary operator in java? What is an interface?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
What are the 4 types of research methods?
Which class cannot be a subclass in java?