main features of java Flashcards
(16 cards)
What is the fundamental programming paradigm of Java?
Java is fundamentally an Object-Oriented Programming (OOP) language, organizing code around ‘objects’ that encapsulate data and behavior.
What are the core principles of Object-Oriented Programming in Java?
The core principles include Encapsulation, Inheritance, Polymorphism, and Abstraction.
What is Encapsulation in Java?
Encapsulation is the practice of hiding internal data and providing controlled access.
What is Inheritance in Java?
Inheritance allows the creation of new classes based on existing ones.
What is Polymorphism in Java?
Polymorphism allows objects to take on multiple forms.
What is Abstraction in Java?
Abstraction simplifies complex systems by modeling classes appropriate to the problem.
What does ‘Write Once, Run Anywhere’ (WORA) mean in Java?
Java’s bytecode can run on any platform with a Java Virtual Machine (JVM), regardless of the underlying operating system.
What contributes to Java’s robustness?
Java’s strong memory management (automatic garbage collection) and exception handling minimize errors and crashes.
How does Java ensure security?
Java features bytecode verification and security managers to protect against malicious code.
What enhances Java’s performance?
The JVM’s Just-In-Time (JIT) compiler optimizes bytecode into native machine code for efficient execution.
What is multithreading in Java?
Java’s built-in support for multithreading allows concurrent execution of multiple tasks, improving application responsiveness.
What is the significance of Java’s Rich API?
Java’s extensive standard libraries provide pre-built components for various tasks, from networking and database access to GUI development.
What is the advantage of Java’s large community?
Java has a massive global community, providing ample support, resources, and libraries for continuous development and improvement.
How is Java designed to be dynamic?
Java can dynamically load classes, allowing it to adapt to evolving environments.
Why is Java considered simple?
Java was designed to be easy to learn and use, especially for programmers with a C/C++ background.
What applications is Java used for?
Java is used for enterprise systems, Android development, scientific computing, and big data processing.