• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

static, private....etc

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out Bruce Eckel's Thinking in Java. You may download the entire book at his site.
 
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Yes, there is a bit of an echo in here in here.
    Regards,
    Jeff
     
    Ranch Hand
    Posts: 182
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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..
     
    buckaroo
    Posts: 401
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Check this out.
     
    Don't get me started about those stupid light bulbs.
    reply
      Bookmark Topic Watch Topic
    • New Topic