To get a type of object in Java, you can use getClass() method or instanceof operator. These methods are used for both predefined and user-defined classes.
確定! 回上一頁