I'm a beginner to Java, and I wanted to know if you're allowed to set an object to null by using a method within its own class definition. Here's an example of what I mean: I have a class called MyList with the following method
public void close() {
MyList me = this;
me = null;
}
In other words, if I have an instance called
MyList list = new MyList();
and I call:
list.close();
Will this set list to null? Thanks!