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
Is array primitive data type in java?
What is a Transient Object?
How does singleton class work?
What is jagged array in java?
What is the use of http-tunneling in rmi?
What are three advantages of using functions?
What are constructors in java?
Why there are some null interface in java? What does it mean?
What is a local block?
Which types of exceptions are caught at compile time?
Why char array is favored over string for the storage of passwords?
What is a functional interface?
Can you use abstract and final both with a method?
What is the main difference between java platform and other platforms?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?