evolution of java and key features Flashcards

(19 cards)

1
Q

Who developed the Java programming language?

A

James Gosling and his team at Sun Microsystems

Java was initially called Oak before being renamed to Java.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What was the slogan for the first public release of Java?

A

“Write Once, Run Anywhere” (WORA)

The first public release was Java 1.0 in 1995.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What year was Java 1.1 released and what features did it introduce?

A

1997: Inner classes, JavaBeans, JDBC

JDBC stands for Java Database Connectivity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What major features were introduced in Java 2?

A
  • Swing
  • Collection Framework
  • JIT (Just-In-Time) Compiler

These features enhanced Java’s performance and usability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What improvements were made in Java SE 5?

A
  • Generics
  • Enhanced for-loop
  • Annotations
  • Autoboxing

Java SE 5 was released in 2004.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What significant performance improvements were introduced in Java SE 6?

A

Improved performance and Web Services support

Java SE 6 was released in 2006.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

List three features introduced in Java SE 7.

A
  • try-with-resources
  • Diamond Operator
  • Improved exception handling

Java SE 7 was released in 2011.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the major features of Java SE 8?

A
  • Lambda Expressions
  • Streams API
  • Default Methods
  • New Date-Time API

Java SE 8 was released in 2014.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Project Jigsaw introduced in Java SE 9?

A

Modules

Project Jigsaw was part of efforts to improve modularity in Java.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What new feature was introduced in Java 10?

A

Var keyword

This feature allows for local variable type inference.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a key feature of Java that supports parallel execution?

A

Multi-threading

Java allows multiple threads to run concurrently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does Java’s automatic memory management utilize?

A

Garbage Collection

This helps in reclaiming memory automatically.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is one of the security features built into Java?

A

Bytecode verification

This helps ensure that the bytecode adheres to Java’s safety standards.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does platform independence in Java refer to?

A

Java bytecode runs on JVM, making it cross-platform

This allows Java applications to run on any device with a compatible JVM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What feature of Java supports Encapsulation, Inheritance, Polymorphism, and Abstraction?

A

Object-Oriented Programming

These principles are fundamental to Java’s design.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are some enhancements introduced in Java SE 14 and 15?

A
  • Records
  • Sealed Classes

These features simplify data modeling and restrict class inheritance.

17
Q

What is the latest Long-Term Support (LTS) version of Java?

A

Java 21

It includes enhanced pattern matching, garbage collection, and performance improvements.

18
Q

True or False: Java supports automatic memory management through manual memory allocation.

A

False

Java uses Garbage Collection for memory management.

19
Q

What is the purpose of the Just-In-Time (JIT) compiler in Java?

A

Improves performance by compiling bytecode into native machine code

This allows for faster execution of Java applications.