[JAVA] Summary of root classes in various languages

Root class

The root class is the highest class in the inheritance hierarchy. For example, in C #, all classes inherit from Object.

Root Class Structure (1).png

Root class for each language

The root class is different for each language, summarized in the following table. (Recently, the root classes in C #, Java and Kotlin have been messed up ...)

Language Name Details
C# Object Object Class (System)
Java Object Object (Java Platform SE7)
Kotlin Any Any - Kotlin Programming Language
Python object Class definition
etc... etc... etc...

There are root classes in other languages too ... Please tell me who knows.

Recommended Posts

Summary of root classes in various languages
Summary of hashes and symbols in Ruby
[Ruby] Summary of exception classes that appear in error statements [Meaning of NameError]
Summary of how to select elements in Selenium
About the idea of anonymous classes in Java
[Java] Personal summary of classes and methods (basic)
Parallel and parallel processing in various languages (Java edition)
Summary of what I learned in Spring Batch
Summary of frequently used commands in Rails and Docker
Access the war file in the root directory of Tomcat
Get a list of classes in a Guava specific package
Usability of date and time classes in each language
Personal summary of the guys often used in JUnit 4
Summary of how to implement default arguments in Java
Summary of OpenJDK sources
Summary of strong parameters
Summary of jar files
Various pensions in Japan
Summary of information security
Summary of using FragmentArgs
Various threads in java
Output in multiples of 3
Summary of using DBFlow
Summary of Java support 2018
[For beginners] Explanation of classes, instances, and statics in Java
I compared the build times of various Dockerfiles in Rust