scjp1.6,scwcd1.5:)!!!
sumedha rao wrote:Hi buddies,
when i try to access an inner class that is outside an outer class(within the same package),i get a java.lang.NoSuchMethodError error
now all i know is that this error is thrown at run time when a particular class no longer stores the defination for that method....
how can i fix this problem...plzzz help
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla wrote:
Yeah please provide an example. And a class declared outside an external class but within the same package is no longer called an Inner class.
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Abimaran Kugathasan wrote:
The inner class may be in another outer class. He/She is trying to access the inner class which is located in another Outer class from another Top level class.
Henry Wong wrote:
Abimaran Kugathasan wrote:
The inner class may be in another outer class. He/She is trying to access the inner class which is located in another Outer class from another Top level class.
If that is the case, then the answer would depend on the access modifier for the inner class declaration. And regardless, it doesn't explain any java.lang.NoSuchMethodError error. There is someone missing from the question.
Henry
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
scjp1.6,scwcd1.5:)!!!
Abimaran Kugathasan wrote:
He/She is trying to access the inner class which is located in another Outer class from another Top level class.
scjp1.6,scwcd1.5:)!!!
sumedha rao wrote:
Abimaran Kugathasan wrote:
He/She is trying to access the inner class which is located in another Outer class from another Top level class.
My name makes it quite clear that i am a girl......
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
sumedha rao wrote:My name makes it quite clear that i am a girl......
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankit Garg wrote:
sumedha rao wrote:My name makes it quite clear that i am a girl......
Not necessarily. Names vary very much in every country and even in regions within a country. Its easy to confuse a person's gender if you are not familiar with the name. This might be a sort of hijack but I felt your reply was not very nice in this instance so I though I should point it out...
scjp1.6,scwcd1.5:)!!!
scjp1.6,scwcd1.5:)!!!
sumedha rao wrote:now i dont want anyone else commenting on my gender.....please lock this post
sumedha rao wrote:
ok im sorry(if i should be so),and i dont think it will be taken serious by abimaran(because i myself dint take the comment seriously...lol........)
But i am a girl...remember it for next time.. (i wish i could announce it to the entire java ranch forum)
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Consider Paul's rocket mass heater. |