在Java中,下列代碼將輸出()。
1. public class integerequals
2. {
3. public static void main (String args[])
4. {
5. Integer a= new Integer(3);
6. Integer b= new Integer(3);
7. System.out.println(a==b);
8. }
9. }
A.編譯器將顯示第7行有錯誤
B.程序編譯并打印true
C.程序編譯并打印false
D.程序編譯但在第7行引起了一個運行期意外