Thanks to everyone who helped. This is now a solved question.
Type: Posts; User: TheSlowLearner
Thanks to everyone who helped. This is now a solved question.
Thanks. This helped me understand. :D
public class ObjectInitialization {
Object object1;
static Object object2;
public static void main(String[] args) {
Object object3;
}
}
Ok, I hope these are my last questions. I just want to be sure I understand fully.
Why would you ever WANT an object to be set to null? Would you set an object to null if you wanted it to be...
Just wondering, what does this mean exactly? Could you give an example? For some reason I just can't picture what you're saying.
Thanks for all the answers everyone.
So, just to be sure I understand: without initializing the object it has a 'null' value and any attempt to call methods on it will result in a 'null pointer...
Hi, this is my first time posting on this forum so I'm sorry if this isn't the right place for this topic. If it isn't the right place, please tell me where a better place might have been. Also, if...