Question OOP-ABS-0023
EasyWhich keyword declares an abstract class in Java?
- A.
static
- B.
abstract
- C.
Show answer and explanation
Answer: B
For example: abstract class Shape { … }.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Abstraction and Interfaces question
Which keyword declares an abstract class in Java?
static
abstract
Answer: B
For example: abstract class Shape { … }.
interface
virtual