• Post Reply Bookmark Topic Watch Topic
  • New Topic

non static  RSS feed

 
santhosh.R gowda
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
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!