Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: java keywords.

  1. #1
    New Coder
    Join Date
    Mar 2008
    Thanked 0 Times in 0 Posts

    java keywords.

    correct me if im wrong

    system.out --the system will print something out in the screen?

    io -- type of java package?

    public vs private?-- public means available to everyone and private means only on certain areas?

    InputStreamReader? ...


    public static void main(String[] args), are there any main methods?

    NetBeans IDE? - Is this a program like Jcreator pro? what program do you reccomend to use
    Last edited by jpnv8; 04-03-2008 at 05:19 AM.

  2. #2
    Regular Coder mjlorbet's Avatar
    Join Date
    Jan 2008
    Milwaukee, WI
    Thanked 96 Times in 95 Posts
    you're thinking of .net packages
    java.io is a package & would be used with import java.io.*;

    public is available for use by other objects through an instance of the object declared.

    class t extends Object{
    public int add(int a, int b){return a + b;}
    public t(){}
    class other extends Object{
         private int value;
         public other(){
             t A = new t();
             value = A.add(3, 4);
    you see here that t defines a public method, which may be called by things instantiating instances of t (such as A). you also see that other has a private int called value. value cannot be accessed from outside of an instance of "other". in other words it's private to that object.

    InputStreamReader would read from a stream (file, memory, etc. depends on context)

    public static void main(String[] args) is the initializing method for the primary class in a console based assembly.

    Netbeans is decent but requires a ton of memory, Jbuilder is obsolete, and eclipse is slow, unreliable, & otherwise garbage. no real good options Oracle 11g studio seems to be about par for the course with Netbeans, sunstudio isn't much better either being that it's based on netbeans 5, there is a newer release but it's only for solaris/linux/unix.
    "Want me to precludify him, like some kind of dispatcherator?... Can do!" -Bender

  3. #3
    Regular Coder Aradon's Avatar
    Join Date
    Jun 2005
    Thanked 20 Times in 19 Posts
    For IDE's if you want something directly from the Java developers then you're going to want Netbeans.

    If you want an IDE that has more plugins then you know what to do with for other languages (php, c++, java, xml, etc. etc.) then I suggest Eclipse.

    Those are the two main IDE's that most Java Developers use.
    "To iterate is human, to recurse divine." -L. Peter Deutsch


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts