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
What combination simplifies building dynamic websites in Java?
a) HTML and JavaScript
b) HTML and JSP
c) HTML and CSS
d) HTML and Java
d) HTML and Java
What is a significant feature of the Spring framework?
a) It requires a lot of boilerplate code
b) It simplifies server-side development
c) It is only for mobile applications
d) It does not support REST APIs
b) It simplifies server-side development
What are boilerplate codes?
a) Code that is unique for each application
b) Repetitive code written in many parts of an application
c) Code that is only found in mobile applications
d) Code that is used for testing
b) Repetitive code written in many parts of an application
What type of APIs can be easily built using the Spring framework?
a) SOAP APIs
b) REST APIs
c) GraphQL APIs
d) gRPC APIs
b) REST APIs
Which framework is widely used for big data operations and is written in Java?
a) Apache Flink
b) Apache Hadoop
c) Apache Storm
d) Apache Spark
b) Apache Hadoop
What popular big data tool is written in both Java and Scala?
a) Apache Hive
b) Apache Kafka
c) Apache Flume
d) Apache Cassandra
b) Apache Kafka
What is the preferred language for Android application development as of this recording?
a) Java
b) C++
c) Kotlin
d) Swift
c) Kotlin
How is Kotlin related to Java?
a) Kotlin is a completely different language
b) Kotlin does not support Java code
c) Kotlin is fully interoperable with Java
d) Kotlin cannot be used for Android development
c) Kotlin is fully interoperable with Java
What is the argument for knowing Java as a programming language?
a) Java is less useful than other languages
b) Java is easy to forget once learned
c) Java is arguably the most important programming language to know
d) Java is only useful for web applications
c) Java is arguably the most important programming language to know