Java不支持默认参数。但kotlin函数却可以
package loaderman.demo class Customer(var name:String ="name"){//默认参数 init { print(name) } }
package loaderman import loaderman.demo.Customer fun main(arg: Array<String>) { Customer() }