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 are the 4 types of research methods?
How can we run a java program without making any object?
Can long be null in java?
What are three ways in which a thread can enter the waiting state in java programming?
How do you identify independent and dependent variables?
How objects of a class are created if no constructor is defined in the class?
What is return data type?
What is pojo class in java?
What is the implementation of destroy method in java. Is it native or java code?
How many types of string data types are there?
What are different type of exceptions in java?
How do you remove all elements from an arraylist in java?
What is token in java?
What is bitwise complement?
What are different types of multitasking?