Difference between this(), super()?

Answers were Sorted based on User's Feedback



Difference between this(), super()?..

Answer / jitender

this,super key words not accepted static keyword.

Is This Answer Correct ?    0 Yes 0 No

Difference between this(), super()?..

Answer / anil kumar singh

1: 'this' keyword is only use to call to parametic
constructors within the same class.

2: 'super' keyword is use to call to parametric
constructors of base class.

Is This Answer Correct ?    7 Yes 12 No

Post New Answer

More Core Java Interview Questions

Explain the difference between arraylist and linkedlist in java?

0 Answers  


What is the method in java?

0 Answers  


Can you create an object of an abstract class?

0 Answers  


You're given a Boolean 2D matrix, can you find the number of islands?

0 Answers   Amazon,


My interview asked what is dynamic variable in java and where we use them.

2 Answers   IBM,






Convert a BST into a DLL and DLL to BST in place.

0 Answers   Amazon,


for(i=0;i<100;i++) { int i=method();//method returns no's from 1 to 10; /* insert some stmts which can give output like no.of times numbers(1-10) returned. (for example if it returns 2 then i want output how many times 2 returned) like that i want output for no's 1 - 10 how many times each no returned. */ }

3 Answers  


What is difference between printf and scanf?

0 Answers  


What is the use of protected in java?

0 Answers  


Can static methods access instance variables in java?

0 Answers  


What is a predicate method?

0 Answers  


What are the important methods of java exception class?

0 Answers  


Categories