In Java, is it possible to have Interface in Inner class?
dukoolsharma
-10
Newbie Poster
Recommended Answers
Jump to PostYour title and question are inconsistent!
Is it interfaces in inner classes, inner classes in interfaces?Interfaces in inner classes:
Yes, sometimes.
Because interfaces are by definition static, they can only be declared in a static inner class.
Thus:class Testing { static class Inner { interface …
All 2 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
rproffitt
commented:
Maybe they are trying to make the Kessel run in less than 12 parsecs?
+0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.