This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes public inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "public inner class" Watch "public inner class" New topic

public inner class

Kush Kush

Joined: Apr 27, 2004
Posts: 11
class Outer
public class Inner
//inner class code
public static void main(String lal[])
H h=new H();
Inner Inner();

In above code what is the use of Public (non - static )Inner Class ?

Smile with JAVA
Peter Shipway
Ranch Hand

Joined: Mar 25, 2004
Posts: 71
I think that the code in the main method somehow relates to it, hence it being public im not sure on this the standard that i folllow is to use the static main class tpo to run another method eg
public static void main (Sting [] args) {
ProgramName tpo = new ProgramName();
I agree. Here's the link:
subject: public inner class
It's not a secret anymore!