instanceof checks if obj is the subclass of some class. getClass returns the exact type of an object. examples/groovy/check_type.groovy.
確定! 回上一頁