Top "Inner-classes" questions

In object-oriented programming (OOP), an inner class or nested class is a class declared entirely within the body of another class or interface.

Deserialize complex JSON to Java, classes nested multiple levels deep

I am trying to make the Json output from Cucumber into a single Java object. This contains objects nested four …

java json jackson inner-classes json-deserialization
java inner/outer class questions about outer class private variables access

I have the following java class: class Outer { private Integer a; private Long b; class Inner { public void foo() { System.…

java class inner-classes decompiling
Public vs Private inner classes in Java

I was reading introduction to Java programming and it does not have a good explanation regarding this topic and it …

java inner-classes access-specifier
Java: calling outer class method in anonymous inner class

Recently, I ran into a mysterious problem in an android project, which I described here. I somehow solved the problem, …

java android inner-classes
Can I access new methods in anonymous inner class with some syntax?

Is there any Java syntax to access new methods defined within anonymous inner classes from outer class? I know there …

java syntax inner-classes member
Nested inner Activity class in android

Is declaring a class that extends Activity inside another Activity class possible? If it is, how would I register that …

android android-activity inner-classes listactivity nested-class
Why a non-static inner-class cannot have static members (fields and methods)?

Possible Duplicate: Why cant we have static method in an inner class? I know that the creation of a non-static …

java static inner-classes static-members non-static
Intellij Extract Inner Class

How does one who is using IntelliJ or Android Studio extract a public static inner class to create a new …

android-studio intellij-idea refactoring inner-classes
Java: How to check if an object is an instance of a non-static inner class, regardless of the outer object?

If I have an inner class e.g. class Outer{ class Inner{} } Is there any way to check if an …

java inner-classes instanceof
C++ - What's the point of nested classes?

I'm studying a little of C++ and now I'm fighting against it's similitudes with Java. I know the purpose of …

c++ inner-classes