previous |
start |
next .... [Slide 5] ....
"Hello, World" in Java
- Construct separate class to test your class
- main method is called when program starts
- main is static: it doesn't operate on any
objects
- There are no objects yet when main starts
- In OO program, main constructs objects and invokes
methods
previous |
start |
next .... [Slide 5] ....