ITELEC MIDTERM EXAM
Instance variables
Every object has its own unique set of?
Protected
It's often used to provide controlled access to subclass members.
1. Java Compiler (javac) 2. Java Virtual Machine (JVM) 3. Java Runtime Environment (JRE) 4. Java API libraries 5. Development Tools 6. JavaFX 7. Security and Encryption Tools 8. Sample Code and Templates 9. Header Files and Native Libraries 10. Archiver (jar)
JDK Components
1. Oracle JDK 2. OpenJDK 3. Azul Systems Zing 4. Azul Systems 5. IBM J9 JDK 6. Amazon Corretto
Most popular JDKs:
1. Class types 2. Array types 3. Interface types 4. Enumeration types 5. String
Non-Primitive Data Types
1. Boolean 2. Byte 3. Char 4. Short 5. Int 6. Long 7. Float 8. Double
Primitive Data Types
C/C++
Programming languages that resembles Java's syntax
Default
There is no access modifier is specified. The element is accessible only within the same package. It restricts access outside the package, even in subclasses.
Access Modifiers
These modifiers control the scope of class and methods.
1. Arithmetic Operators 2. Unary Operators 3. Assignment Operators 4. Relational Operators 5. Logical Operators 6. Ternary Operators 7. Bitwise Operators 8. Shift Operators 9. Instance of Operators
Types of Operators
Sun Microsystems Inc
Where was Java developed?
James Gosling
Who developed Java?
1996
Year when Java had its first public release.
Class
a blueprint (plan) of the instance of a class (object). It can be defined as a logical template that share common properties and methods.
Java API libraries
a collection of pre-built classes and packages that provide a wide range of functionalities, from basic data structures to advanced networking and GUI programming.
James Gosling
a computer scientist and software engineer who invented Java programming language.
Java Development Kit
a core package used in Java, along with JVM and JRE.
Java Development Kit
a cross-platformed software development environment that offers a collection of tools and libraries necessary.
Java Virtual Machine (JVM)
a runtime environment that interprets and executes Java bytecode, enabling platform-independent execution of Java programs.
Java Runtime Environment (JRE)
a subset of the JDK that includes the necessary components to run java applications, such as the JVM and essential libraries.
Java Virtual Machine (JVM)
acts as a runtime engine to run Java applications.
Instance variable
also known as member variable or fields, are variables that belong to an instance of a class in Java. They are declared within a class but outside any method, constructor, or block.
Object
an instance of a class. It is an entity that has behaviour and state.
Identifiers
are the names of local variables, instance and class variables, and labels.
Just in Time compiler
boosts performance by compiling bytecode into native machine code during runtime through collaboration with the JVM.
Java
class-based, object-oriented programming language with minimal implementation dependencies.
Instance variable
is a variable associated with a particular instance of a class.
White spaces
is known as a blank line, and the Java compiler totally ignores it.
Java Virtual Machine (JVM)
is the one that calls the main method present in a java code.
Protected
it allows the element to be accessed within the same package and also in subclasses, regardless of whether they are in the same package or not.
Public
it allows the element to be accessible from anywhere, including outside the class, outside the package, even in different packages. It provides the broadest accessibility.
Private
restricts access to within the same class only. It prevents any external access, even within the same package or in subclasses.
Method
the behaviour of an object is the method.
Main output
the last line of code within the main method that uses the System.out.println method to print a message to the console.
Public static void main (String [] args)
the method main() is the main entry point into a Java program; this is where the processing starts.
Main method
this is the main entry point of the program.
Just in Time compiler
this replaces repetitive bytecode interpretation, reducing translation overhead and enhancing execution speed.