What is the difference between this() and super()?
Answer Posted / varunkumar
this keyword is used to invoke the current class properties.
Where as super keyword is used to invoke the immidiate
super class properites.
this keyword is same name of mathed and decleare value is
used the this class
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is fail first in java?
How do you get length in java?
What is difference between string and new string?
What are the 2 types of java programs?
what happens when a thread cannot acquire a lock on an object? : Java thread
What is an off by one error in java?
What do you mean by global variable?
Explain what is Marker interface?
How we can run a jar file through command prompt in java?
What is a boolean in java?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
Differentiate between static and non-static methods in java.
What is the purpose of using break in each case of switch statement?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Which is better stringbuffer or stringbuilder?