
Java Quiz 6
Authored by Wojciech Smol
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Jaka jest różnica między klasą abstrakcyjną a interfejsem w Javie?
Klasy abstrakcyjne mogą być rozszerzane, podczas gdy interfejsy nie mogą.
Interfejsy mogą mieć pola, podczas gdy klasy abstrakcyjne nie mogą.
Klasy abstrakcyjne mogą mieć implementacje metod, podczas gdy interfejsy nie mogą.
Interfejsy mogą być dziedziczone, podczas gdy klasy abstrakcyjne nie mogą.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Które zdanie na temat typu wyliczeniowego Enum jest nieprawdziwe
Enum może implementować interfejsy
Enum może rozszerzać klasy
Enum może posiadać wiele konstruktorów
Enum nie jest singletonem - tzn. da się utworzyć wiele egzemplarzy danego enuma za pomocą słówka new
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Jakie jest poprawne wyrażenie do uzyskania aktualnej daty i czasu w Javie w strefie czasowej w jakiej się znajdujemy?
System.out.println(Date.now());
System.out.println(LocalDateTime.now());
System.out.println(System.currentTime());
System.out.println(Instant.now());
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Którego słówka kluczowego nie można używać z konstruktorem
public
static
private
protected
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Ile razy na ekranie zostanie wyświetlone "Statement"?
8
9
10
11
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?