Java Intermediate

0% completed

Previous
Next
Quiz
Question 1
Which package contains many of Java’s core classes, such as String, System, and Math?
A
java.util
B
java.lang
C
java.io
D
java.time
Question 2
What is the purpose of wrapper classes in Java?
A
To allow primitive types to be used as objects and provide utility methods.
B
To improve the speed of arithmetic operations.
C
To enable multiple inheritance.
D
To replace all primitive types with objects by default.
Question 3
What does the LocalDate class in the java.time package represent?
A
A specific moment on the timeline in UTC.
B
A date (year, month, day) without time information.
C
A time of day without a date.
D
A date with timezone information.

.....

.....

.....

Like the course? Get enrolled and start learning!
Previous
Next