View Full Version : java keywords.

04-03-2008, 05:14 AM
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

04-03-2008, 11:40 PM
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.

04-04-2008, 04:46 AM
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.