wood burning stoves
The moose likes Beginning Java and the fly likes non static Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "non static" Watch "non static" New topic

non static

santhosh.R gowda
Ranch Hand

Joined: Apr 06, 2009
Posts: 296
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

Creativity is nothing but Breaking Rules
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10747

You might also want to read this

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link: http://aspose.com/file-tools
subject: non static
It's not a secret anymore!