4
Tại sao một biến "Lớp" không thể được chuyển cho instanceof?
Tại sao mã này không biên dịch? public boolean isOf(Class clazz, Object obj){ if(obj instanceof clazz){ return true; }else{ return false; } } Tại sao tôi không thể chuyển một biến lớp cho instanceof?
89
java
class
instanceof