• Post Reply Bookmark Topic Watch Topic
  • New Topic

This program is going to print Inner created. please explain "new Seputura.Inner();" how it works  RSS feed

 
kumar Nagesh
Greenhorn
Posts: 12
Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interface Seputura {
public class Inner {
Inner(){
System.out.println("Inner created");
}
}
}

public class InterfaceSeputura {

public static void main(String[] args) {

new Seputura.Inner();
}
}
 
Campbell Ritchie
Marshal
Posts: 56534
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Inner Classes are more difficult than the average beginner's question: moving.
 
kumar Nagesh
Greenhorn
Posts: 12
Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pease reply anybody ... I am waiting for reply.....thanks in advance
 
Campbell Ritchie
Marshal
Posts: 56534
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it? Did it work?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!