Does 'extends Object' have a purpose or is it redundant?

前端 未结 18 1005
日久生厌
日久生厌 2021-01-03 19:25

Following a tutorial on the internet regarding Soap development with Java, I found this link, with a rather unusual code for myself.

The code:

public         


        
18条回答
  •  滥情空心
    2021-01-03 20:01

    Why not make it explicit?

    I'm for adding it in - not everyone "implicitly" knows that every Java class implicitly extends Object. By writing it explicitly they don't have to guess.

提交回复
热议问题