Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static, private....etc

 
fred fredricks
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6450
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out Bruce Eckel's Thinking in Java. You may download the entire book at his site.
 
Jeff Bosch
Ranch Hand
Posts: 805
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(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
     
    Jeff Bosch
    Ranch Hand
    Posts: 805
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Yes, there is a bit of an echo in here in here.
    Regards,
    Jeff
     
    Nischal Tanna
    Ranch Hand
    Posts: 182
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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..
     
    Donald R. Cossitt
    buckaroo
    Ranch Hand
    Posts: 401
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Check this out.
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic