wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Java 總複習

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

What is the history and application areas of Java?

a)

Development history, version evolution, application scenarios (desktop, web, mobile devices)

b)

Only desktop applications

c)

Only web applications

d)

Only mobile applications

2.

How to set up the Java development environment?

a)

Install JDK, Eclipse/IntelliJ IDEA, create Java project

b)

Only install JDK

c)

Only install Eclipse

d)

Only create a Java project

3.

What are the basic syntax rules of Java?

a)

Variables, constants, basic data types, type conversion

b)

Only variables

c)

Only constants

d)

Only data types

4.

What are operators and expressions in Java?

a)

Arithmetic operators, conditional operators, logical operators, precedence

b)

Only arithmetic operators

c)

Only conditional operators

d)

Only logical operators

5.

What is conditional judgment in Java?

a)

if, else if, switch

b)

Only if

c)

Only switch

d)

Only else if

6.

What are the loop controls in Java?

a)

for, while, do-while, break, continue

b)

Only for

c)

Only while

d)

Only do-while

7.

What are methods and functions in Java?

a)

Definition of methods, parameter passing, return values, Overloading

b)

Only definition of methods

c)

Only parameter passing

d)

Only return values

8.

What are arrays and lists in Java?

a)

One-dimensional and multi-dimensional arrays, ArrayList, LinkedList

b)

Only one-dimensional arrays

c)

Only ArrayList

d)

Only LinkedList

9.

What is the Java Collection Framework?

a)

List, Set, Map and their applications

b)

Only List

c)

Only Set

d)

Only Map

10.

What is the basic concept of classes and objects?

a)

Basic concepts, definitions, and usage of classes and objects

b)

Only classes

c)

Only objects

d)

Only definitions

11.

What are the properties and methods of classes?

a)

Definition and usage of class properties and methods

b)

Only properties

c)

Only methods

d)

Only definitions

12.

What is a constructor in Java?

a)

Definition and usage of constructors

b)

Only definition

c)

Only usage

d)

Only examples

13.

What is exception handling in Java?

a)

try-catch-finally, exception classes (Exception vs Error)

b)

Only try-catch

c)

Only finally

d)

Only exception classes

14.

What is custom exception class in Java?

a)

Inherit Exception to create custom exception classes

b)

Only inherit Exception

c)

Only create custom classes

d)

Only examples

15.

What are generics and lambda expressions in Java?

a)

Usage of generics, simplified syntax of lambda

b)

Only generics

c)

Only lambda

d)

Only examples

16.

What is file handling in Java?

a)

FileReader, FileWriter, BufferedReader

b)

Only FileReader

c)

Only FileWriter

d)

Only BufferedReader

17.

What is multithreading in Java?

a)

Thread class, Runnable interface

b)

Only Thread class

c)

Only Runnable interface

d)

Only examples

18.

What is thread synchronization and locking mechanism?

a)

synchronized, wait(), notify()

b)

Only synchronized

c)

Only wait()

d)

Only notify()