CIS191-s12/Skills 9
From MCIS Wiki
Instance variables in interfaces are always static final even if not declared as such!
Primitive Types
This is covered in chapter 3. Also see http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
Know the following:
- The differences between the various numeric types and the cup analogy
- What overflow is and what java does about it
- How to convert between primitive types
- The remote control analogy
- The difference between a primitive type and a reference type:
- Primitives can't be null
- Primitives can be compared using == for equality
- Primitives don't have constructors
- Reference types that correspond to primitives and auto-boxing
- Primitives are passed by value into methods
- Primitives can't be inherited from or extended
Files
This is covered at page 452 in the text. This will also help: http://docs.oracle.com/javase/tutorial/essential/io/charstreams.html
Know the following:
- What a file is
- The difference between the name and the contents
- How to read a file line by line
- How to use try / catch to detect file problems
- How to close a file
- Common file problems
