IF class is not public , file name can be any.
only one public class for this class in the file. so file name should be class name.
8 primitives types/ value
byte - 1 bytes
short -2
int - 4
long - 8
float - 4
double - 8
char - 4
boolean - 1 bit
refrence types/ obejcts types
Java API = library classes
http://java.sun.com/javase/6/docs/
most inmportant API: java.lang
can not overload the operators
Math.pow(2,3);
not static or public in local varibales, but can have const
String s = new String ("hee");
s is an object with hee and other String class properties.
Primitives types are located on stack.
String s2= "ee";
special object
Links
Thursday, February 4, 2010
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2010
(52)
-
▼
February
(19)
- console input
- How To Use Command Line Arguments in Eclipse
- Creating a JAR File
- package
- string.split()
- What will i get when i download Java Software?
- math.hws.edu
- whitespace
- TextFileInput.java
- Exceptions
- Using Swing Components
- Passing Information to a Method or a Constructor
- Language Basics
- NetBeans IDE Java Quick Start Tutorial
- How to set up Java on my computer
- Customizing Formats
- Class notes
- JFrame
- Java Packages and interface
-
▼
February
(19)
No comments:
Post a Comment