File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 10825
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:
subject: non static
It's not a secret anymore!