A free-to-use, dynamic, high-level programming language for coding programs such as web apps, mobile apps, enterprise software, big data applications, and server-side technologies.
Java
Who created Java and when?
Sun Microsystems in 1995. Which is now owned by oracle since june 23 2014
What are the main features of Java?
Multi-platform, Object-Oriented, and network-centric; also considered a platform in itself.
What are common uses of Java?
game development, cloud computing, big data, artificial intelligence (AI),
and Internet of Things
Software that provides the class libraries and resources required for Java programs to run correctly.
Java Runtime Environment (JRE)
What are 5 advantages of using Java?
A virtual machine and runtime engine that runs Java applications by translating Java bytecode into machine language.
JVM
Java Virtual Machine
Natural programming languages fall
into two (2) broad categories:
Compilers and Interpreters.
The program is written in natural English-like syntax with , and the language then translates the entire code into machine language. It converts the source code into a binary program of bytecode.
Compiler
This checks the bytecode and communicates with the operating system, executing the bytecode instructions line by line
Interpreter
What makes Java unique compared to other languages?
It was the first language to combine both compiling and interpreting using the Java Virtual Machine.
What is the file extension of Java source code?
.java
What is the program file name for the Java interpreter?
java.exe
Pre-written Java programs that plug and play existing functionality into a code, such as getting the time and date, performing mathematical operations, or manipulating text.
Java APIs
Give 3 examples of tasks Java APIs can perform.
Getting date/time, performing math operations, manipulating text.
How many keywords does the Java language have?
Around 50.
How many classes and methods does the Java API have?
Several thousands classes with thousands of methods.
What is the basic unit of a Java program?
It also defines a group of objects that includes data members, which are places to store data, and methods which are places to put the program logic
A Class.
The word ________ is the class name provided by the programmer.
Skeleton
The name given to program components such as classes, objects, or variables.
Identifier
What are the rules for naming identifiers?
Must begin with a letter, underscore (_), or dollar sign ($), not a digit.
Can contain letters, digits, underscores, or dollar signs, but no spaces.
Case-sensitive.
Cannot use true, false, or null.
Cannot use reserved words.
Special words significant to the Java compiler. Aside from class names, these cannot be used as variables, a name used to refer to data stored in the memory.
Reserved Words (Keywords)
What are the 3 reserved words in public static void main?
public → access modifier, required for main().
static → allows main() to run without creating an object.
void → indicates main() does not return a value.
After the three (3) keywords is the name of the method.
Main