|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Abimaran Kugathasan wrote:Hint : What about Inner class Outrer class relationship? Can't we use it?
Manjusha Muraleedas wrote:Please check the following program. Anonymous subclass of A cannot be accessed from any other classes.It can access using A's reference variable only.Please correct me if I am wrong
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
akhter wahab wrote:still confused Ranchers help me out
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
First, a public class in java should be saved in that class name, in your case, since class B is public, you should saved the file with the name as B.java, otherwise change the public class name, as the file name!
Manjusha Muraleedas wrote:Thank you abhiraman for the answer...I was wrong...(
Manjusha Muraleedas wrote:
Now I saved the file as Test.java. Am getting runtime exception ...
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Manjusha Muraleedas wrote:
Abimaran...
C:\New Folder>java Test
Exception in thread "main" java.lang.NoClassDefFoundError: Test
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |