What will happen when you attempt to compile and run the following code()。
A.compiletime error B.prints:1 C.prints:2 D.prints:3 E.prints:7 F.prints:8
A.抽象類可以有構(gòu)造方法,接口中不能有構(gòu)造方法 B.抽象類中可以包含非抽象的普通方法,接口中的方法必須是抽象的,不能有非抽象的普通方法 C.一個(gè)類可以實(shí)現(xiàn)多個(gè)接口,但只能繼承一個(gè)抽象類 D.接口中可以有普通成員變量,抽象類中沒(méi)有普通成員變量
A.HashMap使用鍵/值得形式保存數(shù)據(jù) B.HashMap 能夠保證其中元素的順序 C.HashMap允許將null用作鍵 D.HashMap允許將null用作值