main features of java Flashcards

(16 cards)

1
Q

What is the fundamental programming paradigm of Java?

A

Java is fundamentally an Object-Oriented Programming (OOP) language, organizing code around ‘objects’ that encapsulate data and behavior.

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

What are the core principles of Object-Oriented Programming in Java?

A

The core principles include Encapsulation, Inheritance, Polymorphism, and Abstraction.

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

What is Encapsulation in Java?

A

Encapsulation is the practice of hiding internal data and providing controlled access.

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

What is Inheritance in Java?

A

Inheritance allows the creation of new classes based on existing ones.

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

What is Polymorphism in Java?

A

Polymorphism allows objects to take on multiple forms.

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

What is Abstraction in Java?

A

Abstraction simplifies complex systems by modeling classes appropriate to the problem.

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

What does ‘Write Once, Run Anywhere’ (WORA) mean in Java?

A

Java’s bytecode can run on any platform with a Java Virtual Machine (JVM), regardless of the underlying operating system.

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

What contributes to Java’s robustness?

A

Java’s strong memory management (automatic garbage collection) and exception handling minimize errors and crashes.

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

How does Java ensure security?

A

Java features bytecode verification and security managers to protect against malicious code.

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

What enhances Java’s performance?

A

The JVM’s Just-In-Time (JIT) compiler optimizes bytecode into native machine code for efficient execution.

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

What is multithreading in Java?

A

Java’s built-in support for multithreading allows concurrent execution of multiple tasks, improving application responsiveness.

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

What is the significance of Java’s Rich API?

A

Java’s extensive standard libraries provide pre-built components for various tasks, from networking and database access to GUI development.

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

What is the advantage of Java’s large community?

A

Java has a massive global community, providing ample support, resources, and libraries for continuous development and improvement.

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

How is Java designed to be dynamic?

A

Java can dynamically load classes, allowing it to adapt to evolving environments.

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

Why is Java considered simple?

A

Java was designed to be easy to learn and use, especially for programmers with a C/C++ background.

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

What applications is Java used for?

A

Java is used for enterprise systems, Android development, scientific computing, and big data processing.