Is it possible to create object with out its default
constructor? if possible how? else not possible? justify
Answer Posted / sitaram
we can write the without constructor in the class. when
ever class will be loaded, JVM will be creating defalt
constructor for that class.
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is number data type?
Where and how can you use a private constructor?
What is the difference between choice and list?
How do you input a string in java?
Mention some interfaces implemented by linked list in java.
What do you understand by an io stream?
What is a line break?
What is difference between hashset and hashmap?
What is thread life cycle in java?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is java and its types?
Can we override private method?
Can you override private or static method in java?
What is byte value?
Can you use this() and super() both in a constructor?