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 comparable and comparator interface?
What interface is extended by awt event listeners?
What two classes are used to read data only?
What is var keyword ?
How to sort elements in a parallel array in java?
Can a class have an interface?
Define iterator and methods in iterator?
What is use of static method?
What is the ==?
Differentiate between array list and vector in java.
How many types of variables are there?
What are parameters in a method?
What is the difference between JDBC 1.0 and JDBC 2.0?
How many bytes is a url?
What is gc()?