How are this() and super() used with constructors?
Answer Posted / ravikiran(aptech mumbai)
this() is used to call constructors wih in same class where
as super() is used to call the constructors of it's super class
Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What is the purpose of an interface?
Difference between vector and arraylist.
What is a stringbuilder?
What are different exception types exceptions available in java ?
What is the difference between int and integer in java?
What is function overriding and overloading in java?
What is the purpose of the return statement?
What are the types of java?
What is garbage collection? What is the process that is responsible for doing that in java?
Explain polymorphism citing an example.
Is double bigger than float?
What is :: operator in java?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
Explain different states of a thread in java?
What is the range of a character variable?