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

前端 未结 18 873
日久生厌
日久生厌 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:05

    It is silly code. Every class in Java extends an Object class. No need to type this explisitly

提交回复
热议问题