Review of CSCI 2911
- Contents
- Introduction to Computers and Java
- Java Fundamentals
- Files
- GUI Applications
- Arrays and the ArrayList Class
Introduction to Computers and Java
Java bytecode is cross-platform, meaning that it can run on various computer operating systems.
Java applications — stand-alone programs;
Java Applets — small applications that require the use of a Java enabled web browser.-
Computer Systems — Hardware:
- the central processing unit (CPU)
- main memory
- secondary storage devices, such as hard drive and CDROM
- input and output devices
-
Computer Systems — Software:
-
Operating Systems
- control system resources
- provide means of interaction with the computer
-
Application Software
- programs that make the computer useful to the users
- for example, word processors and games
-
Computer program is a set of instructions that enable the computer to solve a problem or perform a task. These instructions form an algorithm.
-
Common programming language elements
- Key words
- Operators
- Punctuation
- Programmer-defined identifiers
- Strict syntactic rules
-
Compiling a Java program
javac Program.javaRunning a Java program
java Program -
Software engineering
- Designing
- Writing
- Testing
- Debugging
- Documenting
- Modifying
- Maintaining
Object-Oriented Programming (OOP) is centered on creating objects rather than procedures — encapsulation.
Java Fundamentals
-
Parts of a Java Program
- Comments
- Class Header
- Curly Braces
- The
main
Method - Java Statements
-
Console Output