20161025問題解析請點擊今日問題下方的「【Java每日一題】20161026」查看java
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 } }
今日問題:
請問主程序哪些語句會有編譯錯誤?(點擊如下「【Java每日一題】20161026」查看20161025問題解析).net
題目原發佈於公衆號、簡書:【Java每日一題】20161026,【Java每日一題】201610263d
每日一題最新將在公衆號發佈,歡迎訂閱,交流進步code