题目
题目

IPRO002 Week 3 Concept Check

单项选择题

What does the instanceof keyword do?

选项
A.It converts an object to a primitive data type.
B.It checks if an object belongs to a specific class
C.It is used to create a new instance of a class.
D.It is used to declare a new instance variable.
查看解析

查看解析

标准答案
Please login to view
思路分析
Question: What does the instanceof keyword do? Option 1: 'It converts an object to a primitive data type.' This is incorrect. The instanceof operator does not perform type conversion; it only tests the runtime type of an object against a given class ......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!