evolution of java and key features Flashcards
(19 cards)
Who developed the Java programming language?
James Gosling and his team at Sun Microsystems
Java was initially called Oak before being renamed to Java.
What was the slogan for the first public release of Java?
“Write Once, Run Anywhere” (WORA)
The first public release was Java 1.0 in 1995.
What year was Java 1.1 released and what features did it introduce?
1997: Inner classes, JavaBeans, JDBC
JDBC stands for Java Database Connectivity.
What major features were introduced in Java 2?
- Swing
- Collection Framework
- JIT (Just-In-Time) Compiler
These features enhanced Java’s performance and usability.
What improvements were made in Java SE 5?
- Generics
- Enhanced for-loop
- Annotations
- Autoboxing
Java SE 5 was released in 2004.
What significant performance improvements were introduced in Java SE 6?
Improved performance and Web Services support
Java SE 6 was released in 2006.
List three features introduced in Java SE 7.
- try-with-resources
- Diamond Operator
- Improved exception handling
Java SE 7 was released in 2011.
What are the major features of Java SE 8?
- Lambda Expressions
- Streams API
- Default Methods
- New Date-Time API
Java SE 8 was released in 2014.
What is Project Jigsaw introduced in Java SE 9?
Modules
Project Jigsaw was part of efforts to improve modularity in Java.
What new feature was introduced in Java 10?
Var keyword
This feature allows for local variable type inference.
What is a key feature of Java that supports parallel execution?
Multi-threading
Java allows multiple threads to run concurrently.
What does Java’s automatic memory management utilize?
Garbage Collection
This helps in reclaiming memory automatically.
What is one of the security features built into Java?
Bytecode verification
This helps ensure that the bytecode adheres to Java’s safety standards.
What does platform independence in Java refer to?
Java bytecode runs on JVM, making it cross-platform
This allows Java applications to run on any device with a compatible JVM.
What feature of Java supports Encapsulation, Inheritance, Polymorphism, and Abstraction?
Object-Oriented Programming
These principles are fundamental to Java’s design.
What are some enhancements introduced in Java SE 14 and 15?
- Records
- Sealed Classes
These features simplify data modeling and restrict class inheritance.
What is the latest Long-Term Support (LTS) version of Java?
Java 21
It includes enhanced pattern matching, garbage collection, and performance improvements.
True or False: Java supports automatic memory management through manual memory allocation.
False
Java uses Garbage Collection for memory management.
What is the purpose of the Just-In-Time (JIT) compiler in Java?
Improves performance by compiling bytecode into native machine code
This allows for faster execution of Java applications.