wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes newbie questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newbie questions" Watch "newbie questions" New topic
Author

newbie questions

Lauren Johnson
Greenhorn

Joined: Nov 27, 2002
Posts: 1
Hi,
I installed the jdk1.3 on win2k professional platform and added the following 2 path in the environment variables setting.
CLASSPATH
E:\java\jdk1.3.1_01\lib\;
PATH
E:\java\jdk1.3.1_01\bin\;%PATH%;
However, when I javac the file.java, it shows a 100 lines of error. When I did it in JBuilder 5 which created the catch dependence folder, the file.java can be compiled under
console mode without any error.
I think that my path settings may have something wrong and any one could help me?
And I have the following questions:
1. what is the difference between javax.swing and java.awt as both of them are used for
GUI? or Was .awt replaced by swing starting from 1.3?
2. what is the meaning of primitives? int, boolean and char?
3. what is the difference between .jpx and .jpr under JBuilder project?
4. What is the meaning of the following statement?
"The initial value is zero in the case of an array of numerical values, false for boolean arrays, '\u0000' for arrays storing type char, and null for an array of a class type."
5. Any other recommended Java Forum and resources web sites?
6. Does Java use Pointer '*' and Reference '&' like C++?
Thanks in advance.
gogo
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
>CLASSPATH

>E:\java\jdk1.3.1_01\lib\;

Should point to the directory containing your source (*.java) files

>PATH

>E:\java\jdk1.3.1_01\bin\;%PATH%;

~javahome\jdk1.3.1_01\bin
seems ok.

>And I have the following questions:

Lots of questions for one thread.

>1. what is the difference between javax.swing and java.awt as
>both of them are used for GUI? or Was .awt replaced by swing
>starting from 1.3?

java.awt is heavyweight while javax.swing is lightweight. The two should not be mixed. The idea was for swing to pretty much replace awt.

>2. what is the meaning of primitives? int, boolean and char?

primitive = something other than an object
int = 32 bit integral number
boolean = true/false
char = unicode character

>3. what is the difference between .jpx and .jpr under JBuilder
>project?

No idea

>4. What is the meaning of the following statement?

>"The initial value is zero in the case of an array of numerical
>values, false for boolean arrays, '\u0000' for arrays storing
>type char, and null for an array of a class type."

Which part don't you understand?
All arrays are initialized upon construction. What they are initialized to depends on the type of array. This is telling you the default initialization values for each type of array.

>5. Any other recommended Java Forum and resources web sites?

Lots of forums and resources here on javaranch. Explore them.

>6. Does Java use Pointer '*' and Reference '&' like C++?

No.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
gogo,

Please read http://www.javaranch.com/name.jsp and re-register. We'd like you to continue to post here.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie questions
 
Similar Threads
Sun Cirtification
when java is 0 indexed
Array
Section 1 Mock test questions
java