How are this() and super() used with constructors?

Answer Posted / rajesh

this() class refer to current class constructor;

super() refers to base class.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you handle java exceptions?

502


Can we override static methods in java?

556


Is age discrete or continuous?

659


Garbage collection in java?

569


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

627






Explain the concept of hashtables?

592


Is string passed by reference in java?

525


Write a program to find maximum and minimum number in array?

529


What is anagram of a string?

496


Describe 2 different ways to concatenate two strings.

656


What is dynamic array in java?

497


What is integer parseint?

529


Can a static method be final?

529


Explain how can you debug the Java code?

568


What is a variable simple definition?

554