Jaka jest różnica między klasą abstrakcyjną a interfejsem w Javie?

Java Quiz 6

Quiz
•
Computers
•
Professional Development
•
Hard
Wojciech Smol
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
Similar Resources on Quizizz
6 questions
SDA Podstawy 3

Quiz
•
Professional Development
8 questions
Punteros y sobrecarga

Quiz
•
Professional Development
10 questions
Introducción al lenguaje Python

Quiz
•
Professional Development
8 questions
Narzędzia TIK w edukacji

Quiz
•
Professional Development
10 questions
GraphQL Type System lvl.1

Quiz
•
Professional Development
10 questions
Întrebări despre Colecții în Java

Quiz
•
Professional Development
10 questions
RPL KB4 - PPG TKI - 10 SOAL

Quiz
•
Professional Development
10 questions
Java Increment & Decrement Operators

Quiz
•
Professional Development
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade