When does the compiler supply a default constructor for a
class?

Answer Posted / devarathnam c,kotagudibanda(po

Hi... The compiler will supply defaulst constructor when u
not supplied constructor in the program.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of the indexof method are there for strings?

485


What are the different conditional statements?

553


How is final different from finally and finalize?

494


What is the static keyword?

587


What is meant by data hiding/encapsulation?

569






I want to persist data of objects for later use. What’s the best approach to do so?

498


What do you understand by synchronization?

584


What technique can be employed to compare two strings?

567


Give us a program to check for parenthesis matching using stack.

550


What is assembly used for?

496


What are the differences between checked exception and unchecked exception?

524


What is unmodifiable collection in java?

505


What is r * in math?

547


Can we override private method in java?

611


Why is sizeof not a function?

542