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
Is math class static in java?
How strings are created in java?
what is interface in java? Explain
What is the difference between keyword and identifier?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What are class members by default?
What is passing parameters in java?
What is type inference in java8?
Can a lock be acquired on a class in java programming?
What is the loop in java?
Explain about procedural programming language or structured programming language and its features?
Is object a data type?
What is preflight request?
what is the difference between the methods sleep() and wait()? : Java thread
What happens if we don’t define serial version uid?