• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

non static

 
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
Saloon Keeper
Posts: 11178
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic