Answer Posted / ashokmail
'this' operator is used to denote the current working
object.
EX:
Class student{
public student(){
this.addStudent();
}
public void addStudent(){
// to do code here
}
public static void main(String args[]){
new student();
}
}
'this' in the constructor is used to denote the current
working object student...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the symbol for space?
Does java isempty check for null?
Can inner class extend any class?
What is the latest java version?
What is consumer in java?
What is a treeset in java?
What is preparedstatement in java?
What are "class access modifiers" in Java?
Why is singleton not thread safe?
How do you check if two given string are anagrams?
Can we create constructor in abstract class ?
Can bool be null?
Does java initialize arrays to zero?
What are the advantages of java inner classes?
What is the role of garbage collector in java?