Search Header Logo

Java Quiz 6

Authored by Wojciech Smol

Computers

Professional Development

Used 1+ times

Java Quiz 6
AI

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?