Can you call a constructor within a constructor?

Answer Posted / harpreet

And to call the constructor of some other class, use super()

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by garbage collection used in java?

552


What are the drawbacks of reflection?

541


What is string [] args?

529


How do you find the independent variable?

490


Why are pointers not secure?

508






How to create a thread in java?

584


What is one third plus one third as a fraction?

460


What is java jit compilers?

541


Is a class an object?

555


Can you call a method in a method?

502


Why Java doesn’t support multiple inheritance?

612


How to find the largest value from the given array.

494


Can java list contain duplicates?

562


How do you write a conditional statement?

494


How can u increase the heap size in the memory?

525