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


Please Help Members By Posting Answers For Below Questions

What is number data type?

532


Where and how can you use a private constructor?

537


What is the difference between choice and list?

594


How do you input a string in java?

503


Mention some interfaces implemented by linked list in java.

542






What do you understand by an io stream?

587


What is a line break?

586


What is difference between hashset and hashmap?

564


What is thread life cycle in java?

586


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?

640


What is java and its types?

553


Can we override private method?

556


Can you override private or static method in java?

554


What is byte value?

557


Can you use this() and super() both in a constructor?

522