This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "static, private....etc" Watch "static, private....etc" New topic
Author

static, private....etc

fred fredricks
Greenhorn

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!
saludos
drowning newbie!!
Jason Menard
Sheriff

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: 804
I like the Java Tutorial. You can download a copy for free, or view it online, or buy a copy from Amazon.com. 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.
Regards,
Jeff


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
Sheriff

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 http://www.javarules.com


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

    Joined: Jul 30, 2003
    Posts: 804
    Yes, there is a bit of an echo in here in here.
    Regards,
    Jeff
    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)
    {
    display();
    }
    }
    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..


    Thnx
    Donald R. Cossitt
    buckaroo
    Ranch Hand

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


    doco
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
     
    subject: static, private....etc