Applications of Java Flashcards
What is a notable benefit of programming in Java?
a) Java programs can only run on Windows
b) Java programs are difficult to debug
c) Java programs can be run on any platform with the JVM
d) Java requires complex setup procedures
c) Java programs can be run on any platform with the JVM
What feature allows for code-reusability in Java?
a) Interface
b) Class
c) Method
d) Package
b) Class
How does Java’s automatic garbage collection benefit developers?
a) It allows for manual memory management
b) It requires developers to deallocate resources
c) It helps focus on business logic without worrying about memory management
d) It reduces the number of available objects
c) It helps focus on business logic without worrying about memory management
What is a limitation of Java in terms of performance?
a) Java programs cannot use multi-threading
b) Java does not support object-oriented programming
c) Java performance may not match languages like C/C++
d) Java programs run slower on modern machines
c) Java performance may not match languages like C/C++
What is one of the common use cases of Java?
a) Developing video games exclusively for consoles
b) Web programming using Java Server Pages and servlets
c) Operating system development
d) Writing scripts for automation in Linux
b) Web programming using Java Server Pages and servlets
In which field is Java widely adopted for its applications?
a) Web design
b) Data analysis
c) Scientific applications
d) Hardware development
c) Scientific applications
What big data platform is written in Java?
a) Apache Spark
b) Hadoop
c) MongoDB
d) Redis
b) Hadoop
Which framework can be used for developing graphical user interfaces (GUIs) in Java?
a) Bootstrap
b) Swing
c) Flask
d) Angular
b) Swing
What is the first official programming language for Android applications?
a) JavaScript
b) Python
c) Java
d) Ruby
c) Java
Which programming language is now recommended for Android apps, having taken over from Java?
a) C#
b) Kotlin
c) PHP
d) Swift
b) Kotlin
What is jMonkeyEngine used for?
a) Developing web applications
b) Creating mobile apps
c) Building 3D games
d) Analyzing big data
c) Building 3D games
What is one of the fields where Java is very popular?
a) Mobile application development
b) Data visualization
c) Distributed computing
d) Game development
c) Distributed computing
What library allows Java applications to connect to databases?
a) JPA
b) JDBC
c) JNDI
d) Hibernate
b) JDBC
What does ETL stand for?
a) Extract, Transform, Load
b) Extract, Transmit, Load
c) Encode, Transform, Load
d) Extract, Transform, Link
a) Extract, Transform, Load
What is a component in Java that allows defining responses to HTTP requests?
a) Java Server Pages
b) Servlet
c) Spring framework
d) REST API
b) Servlet