Is it possible to create object with out its default
constructor? if possible how? else not possible? justify
Answer Posted / dsr
with out default constructor we can't create the object.
suppose we can't write default constructor in the class.
JVM will be creating the default constructor for that class.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Can you have two constructors in java?
What is balanced tree in java?
Which keyword specify that a variable is effectively final ?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
Can we assign integer value to char in java?
What are synchronized methods ?
What is the primary benefit of encapsulation?
What is the set interface in java programming?
How many bits is a float?
How java is similar to c?
Can you give few examples of final classes defined in java api?
What are the procedures?
What is the range of the short type?
Can singleton class be inherited in java?