What does return do when used inside an if statement?

后端 未结 8 1637
醉梦人生
醉梦人生 2020-12-31 02:16

What does the return inside the if statements do in the following code?

public void startElement(String namespaceURI, String localName,String qName, 
               


        
8条回答
  •  梦谈多话
    2020-12-31 02:45

    it will return what you declared in the method head (here void = nothing = it will just end the method)

提交回复
热议问题