Post comments and questions on the java classes in this thread.
Java classes comments
Collapse
X
-
You'd better make this thread a sticky or it will slowly, but surely, sink out of sight.
Ronald :cool: -
Originally posted by ronverdonkYou'd better make this thread a sticky or it will slowly, but surely, sink out of sight.
Ronald :cool:
I thought of that but then the number of stickies was getting on my nerves. I've provided links in the classes that link to this thread though.Comment
-
In the classes I will be going over some of the most commonly used Java classes like String, ArrayList etc. The next examples I'll use will include Strings so I'll introduce how to use that class first and also look at some differences between == and .equals when comparing Strings plus a look at some of its commonly used methods. Just the basics to get one started in using Strings.Originally posted by Ganon11Ooh, in two posts!
It all looks good, r0 - I'll take a closer look during my free period today. Keep up the good work.
Also, what parts of the String class are you planning on going over?
Thanks for the comments.Comment
-
I know that JRE and JDK are products delivered under the java platform and JRE provides the libraries,JVM, and ather components necessary for running Application. JDK includes the JRE plus command-line development tools such as compilers and debugger.
But I have some questions and confusions,
1-What is the command-line?
2-what is the difference between JVM's Role and command-line's Role?
3-the debugger is the interpreter or java that launch the application and the interpreter is the JVM???So the debugger is the interpreter or the JVM?Comment
-
Command line is just the prompt where you run your commands like MsDos prompt. It is not part of the j.d.k kit but is part of your OS. It's just an interface for running your programs.Originally posted by analoveuI know that JRE and JDK are products delivered under the java platform and JRE provides the libraries,JVM, and ather components necessary for running Application. JDK includes the JRE plus command-line development tools such as compilers and debugger.
But I have some questions and confusions,
1-What is the command-line?
2-what is the difference between JVM's Role and command-line's Role?
3-the debugger is the interpreter or java that launch the application and the interpreter is the JVM???So the debugger is the interpreter or the JVM?Comment
-
The + operator is not applicable to the primitive type byte. It works for numeric types starting from int upwards.Originally posted by analoveuI don't understand why does not the following code compile ?
Code:byte a = 12; a = a + 1;
The ++ operator, however, performs an implicit type cast to int so
will compile because a is converted to int firstCode:byte a = 12; a++;
Comment
Comment