S
S
sublime_text32021-04-04 12:56:44
Java
sublime_text3, 2021-04-04 12:56:44

What two classes do not inherit from Object?

What two classes do not inherit from Object?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Orkhan, 2021-04-04
@sublime_text3

The answer is indeed found faster by a search engine.
1) The Object class does not inherit from itself, since it is a superclass. Other classes inherit from it.
Was that really the question?

What two classes do not inherit from Object?

Just for example, the data type is enumalso not inherited from Object, because it is inherited from Enum.

V
Vasily Bannikov, 2021-04-04
@vabka

1. The answer is easily found by a search engine.
2. There is only 1 class that is not inherited from object - this is object itself
3. Interfaces are also not inherited from object, but when implementing an interface, an object will also inherit object

A
al_gon, 2021-04-04
@al_gon

https://docs.oracle.com/en/java/javase/11/docs/api...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question