Can a Java method return different types based on conditions in the method?

前端 未结 0 1387
轻奢々
轻奢々 2021-01-12 10:34

Is it possible to have a method return different types based on conditions? Never learned Java extensively but I researched generics and it doesn\'t seem to apply if the dep

相关标签:
回答
  • 消灭零回复
提交回复
热议问题