Difference between this(), super()?
Answers were Sorted based on User's Feedback
Answer / jitender
this,super key words not accepted static keyword.
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
Explain the difference between arraylist and linkedlist in java?
What is the method in java?
Can you create an object of an abstract class?
You're given a Boolean 2D matrix, can you find the number of islands?
My interview asked what is dynamic variable in java and where we use them.
Convert a BST into a DLL and DLL to BST in place.
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. */ }
What is difference between printf and scanf?
What is the use of protected in java?
Can static methods access instance variables in java?
What is a predicate method?
What are the important methods of java exception class?