How does describe the relations between the class Animal and Tiger?
Anonymous Quiz
29%
Has a
65%
Is a
7%
Answer
What happens if we call get() on an empty optional?
Anonymous Quiz
39%
NullPointerException
34%
NoSuchElementException will be thrown
21%
Nothing
5%
Answer
What types of blocks don't exist in Java?
Anonymous Quiz
10%
Static initialization block
7%
Initialization block
34%
Local block
39%
All options above are valid
10%
Answer
What does the method offer() to do? Queue interface.
Anonymous Quiz
36%
Carry the element to the end of the queue
17%
Take the element and delete it
34%
Just take the element
13%
Answer
Java задачи • Mentor
Is the finally block always executed?
☝️ Explanation:
The final block is always executed unless there is an abnormal termination of the program, either as a result of a JVM failure or calling the System.exit(0)
The final block is always executed unless there is an abnormal termination of the program, either as a result of a JVM failure or calling the System.exit(0)
What is the result of the next code? for(;;)
Anonymous Quiz
9%
This code will not be executed
76%
Infinity cycle
10%
Compile error
5%
Runtime error