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
Showing posts with label Class notes. Show all posts
Showing posts with label Class notes. Show all posts
Thursday, February 4, 2010
Subscribe to:
Posts (Atom)