20161025問(wèn)題解析請(qǐng)點(diǎn)擊今日問(wèn)題下方的“【Java每日一題】20161026”查看(問(wèn)題解析在公眾號(hào)首發(fā),公眾號(hào)ID:weknow619)
package Oct2016;
import java.util.Date;
public class Ques1026 {
public static void main(String[] args) {
boolean b1 = "String" instanceof Object;//1
boolean b2 = new String() instanceof String;//2
boolean b3 = 'A' instanceof Character;//3
boolean b4 = null instanceof String;//4
boolean b5 = (String)null instanceof String;//5
boolean b6 = new Date() instanceof String;//6
}
}
今日問(wèn)題:請(qǐng)問(wèn)主程序哪些語(yǔ)句會(huì)有編譯錯(cuò)誤八孝?(點(diǎn)擊以下“【Java每日一題】20161026”查看20161025問(wèn)題解析)