This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes static, private....etc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "static, private....etc" Watch "static, private....etc" New topic

static, private....etc

fred fredricks

Joined: Mar 04, 2003
Posts: 16
hi guys...does anyone know of a really, and i mean, really easy to understand tutorial on the basics...i downloaded a few, but i am still a little cofused, with terms like static and private, void....those things really got me confused....thanks a lot!
drowning newbie!!
Jason Menard

Joined: Nov 09, 2000
Posts: 6450
Check out Bruce Eckel's Thinking in Java. You may download the entire book at his site.
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
I like the Java Tutorial. You can download a copy for free, or view it online, or buy a copy from The tutorial has clear explanations, lots of examples, and it's free!
If you want to buy a book, you may want to consider Head First Java by Kathy Sierra and Bert Bates. This book adds an often-missing ingredient to learning a high-level programming language: fun!
Good luck, and happy learning.

Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
(It's just a repititious day.)
Sometimes reading the same topics from different authors and points of views helps a lot towards understanding said topic.
Here is a list of free on-line Java tutorials and books that I have found useful:
  • Sun's Java Tutorial
  • Introduction to Computer Science using Java by Bradley Kjell
  • Introduction to Programming Using Java by David J. Eck
  • Dick Baldwin's Java Programming Tutorials
  • Interactive Programming In Java by Lynn Andrea Stein
  • Bruce Eckel's Thinking In Java
  • And right now, Douglas Dunn is providing a free pre-release version of his Java Rules Volume 2 book at

    [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
    Jeff Bosch
    Ranch Hand

    Joined: Jul 30, 2003
    Posts: 805
    Yes, there is a bit of an echo in here in here.
    Nischal Tanna
    Ranch Hand

    Joined: Aug 19, 2003
    Posts: 182
    static can be applied to a variable,method or even an inner class
    static variable or a static method implies no object for the respective class i.e., instantiating the class is not necessary in order to access that method or variables.
    for example
    class ex {
    static void display() { System.out.println("hello"); }
    public static void main(String[] ag)
    private is an access specifier.
    if a method or a variable is declared as private in a class,they cannot accessed outside the scope of the class,not even in a child class.
    void means the given method does not return any type.i.e., 0
    A given method has to be atleast declared void in java since java requires a return for a method.
    neways i hope i have confused 2 much..

    Donald R. Cossitt
    Ranch Hand

    Joined: Jan 31, 2003
    Posts: 401
    Check this out.

    I agree. Here's the link:
    subject: static, private....etc
    It's not a secret anymore!