MIDTERM Flashcards
Java is a ____-level, ______-oriented programming language
high-level and object-oriented
Java is designed to be
1. S
2. P
3. E
Simple, Portable, and Efficient
Java uses ___-built components to enhance efficiency
pre-built components
What is the meaning of WORA?
Write Once, Run Anywhere
What can Java do? It is a _______-purpose language.
General-purpose language used for
- Web applications
- Mobile applications
- Desktop software
Why use Java?
1. R
2. S
3. S
Robust, Secure, and Simple
Java is _____-based promoting code ___________.
Code-based promoting Code Reusability
Java runs in a secure environment. It converts bytecode into machine code.
Java Virtual Machine
Faster than other languages due to JIT compiler. Meaning of JIT?
Just-In-Time compiler
Where is Java code compiled into?
bytecode
What is a small Java program embedded in a web page?
Java Applet
What is a Java Application?
Full-fledge java program that runs on an operating system
Java Application requires this to execute. It provides libraries and JVM to run Java Programs
Java Runtime Environment
A software development kit used to develop Java applications
Java Development Kit
A rich set of built-in libraries supporting file handline, network, etc.
Java Class Libraries / APIs
it defines the rules for writing Java programs
Syntax
Every Java statement must be within a ____, which starts with an uppercase letter.
Class
Every statement in Java must conclude with a _________.
Semicolon (;)
It defines a class named Main
public class Main
The main method where execution starts
public static void main (String[] args)
Prints output to the console
System.out.println(“Hello, Java!”);
[TYPES OF COMMENTS]
Used for short explanations
Single-line comments (//)
[TYPES OF COMMENTS]
Use for longer descriptions
Multi-line comments (/* … */)
[TYPES OF COMMENTS]
Use for generating documentation
Javadoc comments (/** … */)