Java задачи • Mentor
1.31K subscribers
99 photos
13 links
The channel was created to maintain and develop hard skills 💻

• Tasks
• Questions
• Series of tasks by topic 📖
https://t.me/javaquiz_mentor/5
Download Telegram
What is the best next programming language should Java developers learn?
Anonymous Poll
9%
C#/.NET
50%
Kotlin
24%
Javascript
19%
Python
2%
Ruby
4%
Rust
12%
Go
11%
Scala
3%
Dart
8%
Skip quiz
Can an abstract method be final?
Anonymous Quiz
23%
Yes
74%
No
3%
Answer
What happens if we call get() on an empty optional?
Anonymous Quiz
22%
Nothing
42%
NoSuchElementException
32%
NullPointerException
4%
Answer
Can the parameter be final in the method?
Anonymous Quiz
73%
Yes
25%
No
3%
Answer
What is the initial default capacity of the class HashTable?
Anonymous Quiz
17%
11
76%
16
7%
Answer
What cannot be used with the synchronized keyword?
Anonymous Quiz
11%
method instance
22%
method static
12%
block
43%
constructor
13%
Answer
How does describe the relations between the class Animal and Tiger?
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
Can we have two public classes in the package?
Anonymous Quiz
79%
Yes
21%
No
Does stream work with primitives?
Anonymous Quiz
44%
Yes
56%
No
What is the arrayList.add(11)?
Anonymous Quiz
83%
Autoboxing
10%
Unboxing
7%
Answer
What is the arrayList.get(0)?
Anonymous Quiz
27%
Autoboxing
54%
Unboxing
19%
Answer
Which operator calculates the remainder of division?
Anonymous Quiz
3%
$
3%
**
84%
%
4%
^
5%
Answer
Is the finally block always executed?
Anonymous Quiz
66%
Yes
32%
No
2%
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)
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