Static Attributes and Methods
An Introduction with Examples in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
static
Attributesstatic
Methodsstatic
AttributesInteger
Class:
MIN_VALUE
MAX_VALUE
Double
Class:
NEGATIVE_INFINITY
POSITIVE_INFINITY
MIN_VALUE
MAX_VALUE
Math
Class:
E
(base of the natural log)PI
static
MethodsSystem
Class:
currentTimeMillis()
exit()
Math
Class:
abs()
sin()
cos()
tan()
log()
pow()
sqrt()
static
MethodsInteger
Class:
parseInt()
toString()
Double
Class:
parseDouble()
toString()
main()
:
main()
static?System.in
and System.out
:
printf()
?