1. Introduction to Java Programming
1. Introduction to Java Programming
CHAPTER 1 SUMMARY
INTRODUCTION TO COMPUTERS,
PROGRAMS AND JAVA
Computers use zeros and ones because digital devices have two stable
states, referred to by convention as zero and one.
Memory stores data and program instructions for the CPU to execute.
localhost:63342/2024_07_PG1_sevvalyurtseven/src/summary/chapter1/chapter1Summary.html?_ijt=q63m4k9el826sfu8a7j6vspcg&_ij_reload=RELOAD_ON_… 1/3
8/15/24, 9:35 PM Chapter Summary - Introduction to Java Programming
Memory is volatile, because information is lost when the power is turned off.
Programs and data are permanently stored on storage devices and are
moved to memory when the computer actually uses them.
The Java source file name must match the public class name in the
program. Java source code files must end with the .java extension.
Every class is compiled into a separate bytecode file that has the same
name as the class and ends with the .class extension.
To compile a Java source-code file from the command line, use the javac
command.
To run a Java class from the command line, use the java command.
localhost:63342/2024_07_PG1_sevvalyurtseven/src/summary/chapter1/chapter1Summary.html?_ijt=q63m4k9el826sfu8a7j6vspcg&_ij_reload=RELOAD_ON_… 2/3
8/15/24, 9:35 PM Chapter Summary - Introduction to Java Programming
A block begins with an opening brace ({) and ends with a closing brace (}).
In Java, comments are preceded by two slashes (//) on a line, called a line
comment, or enclosed between /* and */ on one or several lines, called a
block comment or paragraph comment. Comments are ignored by the
compiler.
localhost:63342/2024_07_PG1_sevvalyurtseven/src/summary/chapter1/chapter1Summary.html?_ijt=q63m4k9el826sfu8a7j6vspcg&_ij_reload=RELOAD_ON_… 3/3