0% found this document useful (0 votes)
6 views1 page

Java Fundamentals Reviewer

The document provides an overview of Java programming, detailing its history, key components such as the Java Virtual Machine (JVM) and Java Development Kit (JDK), and the structure of a basic Java program. It explains essential elements like package declarations, import statements, and the main method, as well as Java variables, data types, and literals. Additionally, it covers the use of comments in Java code for documentation and annotation purposes.

Uploaded by

bresusr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Java Fundamentals Reviewer

The document provides an overview of Java programming, detailing its history, key components such as the Java Virtual Machine (JVM) and Java Development Kit (JDK), and the structure of a basic Java program. It explains essential elements like package declarations, import statements, and the main method, as well as Java variables, data types, and literals. Additionally, it covers the use of comments in Java code for documentation and annotation purposes.

Uploaded by

bresusr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

REVIEWER

Fundamentals of Programming (Java)

• Java Programming - A high-level, class-based, object-oriented programming language.


• Computer Programming - The process of writing code.
• James Gosling - Creator of Java.
• Java Created - May 1995 as a core component of Sun Microsystems.
• Oracle Corporation - Current owner of the official implementation of the Java SE Platform.
• January 27, 2010 - Acquisition of Sun Microsystems by Oracle.
• Java Virtual Machine (JVM) - Compiles Java code into bytecode and runs it.
• Java Development Kit (JDK) - Allows developers to create Java programs that can be
executed.
• Java Runtime Environment (JRE) - Provides Java Class Libraries and other components
needed to run Java applications.
• Integrated Development Environment (IDE) - A software used by developers for easier coding.

Main Parts of a Basic Java Program


• Package Declaration - Organizes Java classes into packages for better project structure.
• Import Statements - Allow usage of classes and libraries from other packages.
• Class Declaration - Every program consists of at least one class.
• Main Method - The entry point of a Java program.
• Codes - Instructions written in a programming language to communicate with the computer.
• System.out.println - A Java statement used to print text or values to the console.
• System - A class in Java’s standard library that provides access to the system.
• Out - An instance of the PrintStream class, representing the output stream.
• Print - Outputs text without adding a new line.
• Println - Prints a line of text followed by a new line.
• Comments - Annotations or explanatory notes in code.

Other Parts of a Java Program


• Single-Line Comments - Used to annotate a single line of code.
• Multi-Line Comments - Span multiple lines, useful for detailed explanations, documentation, or
temporarily disabling code.

Java Variables and Literals


• Java Variables - Memory locations used to store data.
• Rules of Naming Variables: Must start with a letter, underscore (_), or dollar sign ($). Cannot
start with a number. No whitespace allowed.
• Java Data Types - Define the type of data that can be stored in a variable.
• Java Literals - Represent fixed values in a program.
• Boolean Literals - true or false values for boolean type.
• Integer Literals - Numeric values without fractions or exponents.
• Floating-Point Literals - Numbers with fractional or exponential form.
• Character Literals - Unicode characters enclosed in single quotes.
• String Literals - Sequence of characters enclosed in double quotes.
• Syntax - Rules for structuring programming languages.
• Expressions - Combination of values, variables, operators, and functions that produce a result.

You might also like