• Post Reply Bookmark Topic Watch Topic
  • New Topic

non static  RSS feed

 
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

class a
{


{
System.out.println("not static");
}

public static void main(String args[])
{
a obj = new a();


}
}

here in my code each time when i create object not static is printing..... how it's so printing like that ..please explain me
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!