Java is interpreted, and garbage collected: C++ has more potential for memory leaks (you must explicitly delete objects) Java intended to be explicitly platform independent • Similarities in syntax. See Gary Shute’s document on Java for C Programmers (available from course calendar) | Java and C Both are object oriented - Class-based Java is interpreted and garbage collected - C has more potential for memory leaks you must explicitly delete objects Java intended to be explicitly platform independent Similarities in syntax See Gary Shute s document on Java for C Programmers available from course calendar Outline Data types Objects Compiling running programs Control structures System objects methods Console output input Strings Exception handling Classes Outline-2 StringTokenizer File directory naming operations File I