Hi, I have a couple of doubts. Can somebody help me ? True or False : 1. An instance of anonymous inner class can only be created in it's outer class. ( My answer is true. Mock exam author says false ) 2. Object refernces that are not initialized explicitly will have their value set to null always. ( My answer is true. Mock exam author says false ) One more thing. Are we expected to memorize precedence of operators for SCJP exam ? Thanks Milind
Amit Tyagi
Ranch Hand
Joined: Oct 18, 2000
Posts: 52
posted
0
Hi Milind , The answer to the first quest. should be false only. and for the second quest. also it should be false. example>>>> ref. var. declared inside the mathod body(i.e. local) will not be set to null. Amit
Niraj Sheth
Greenhorn
Joined: Oct 26, 2000
Posts: 16
posted
0
Hi. I also think answer to first question should be true. Can you explain that why it should be false. Thanks
bill bozeman
Ranch Hand
Joined: Jun 30, 2000
Posts: 1070
posted
0
I think the reason it is false is because you can nest an inner class inside of another inner class. You can go as deep as you want, so an anonymous class can be a method of the outer class or it can be in a method of an inner class. Bill