Java Flashcards
Types of inheritance
Single
multilevel
hierarchical
hybrid
multiple(doesn’t support)
jDK (java development kit)
It’s a package that includes the JRE, plus tools for developing, debugging, and monitoring Java applications.
JRE (Java Runtime Environment):
It includes the JVM along with libraries and other components needed to run Java applications.
run a Java program on your computer, you need the JRE installed.
JVM (Java Virtual Machine)
JVM is a Java Virtual Machine which is a run time environment for the compiled java class files.
Converts bytecode to machine readable code
JIT(Just-in-Time) Compiler
It is a part of JRE(Java Runtime
Environment), it is used for better performance of the Java applications
during run-time.
Latest version of java
Java 22 & jDK 22
Who developed Java ?
James Gosling at Sun Microsystems
when was java released?
May 1995
Features of java
1.Platform independent
2.Simple and easy to learn
3.Object oriented
4.Robust and secure
5.Automatic Garbage Collection
6.High Performance
7.Multithreading
When was Jvm 1.0 released?
JDK 1.0 was released on January 23 1996.
Garbage collection
Garbage collection is the
automatic process of identifying
and reclaiming memory occupied
by objects that are no longer
referenced.
Java uses different
garbage collection algorithms like
generational, mark-and-sweep,
and G1.
Garbage value
The Garbage value isa random value at an address in the memory of a computer. It is leftover values from previous program
What is the Java Collections Framework, and why
is it important?
The Java Collections Framework provides a set of classes and interfaces
for working with collections of objects. It’s essential for efficient data
manipulation and storage in Java applications
Difference between arrraylist and linklist
ArrayList is a dynamic array that allows fast random access, while
LinkedList is a doubly-linked list that is better suited for frequent insertions
and deletions.
Explain the ‘finalize()’ method in Java.
‘finalize()’ is a method called by the garbage collector before an object is
reclaimed. It allows you to perform cleanup operations on resources like
files or sockets.