Given the following code fragment:     public void...
多选题

Given the following code fragment:     public void create() {     Vector myVect;     myVect = new Vector();      }  Which of the following statements are true?() 

发布日期:2020-04-10

A.The declaration on line 2 does not allocate memory space for the variable myVect.

B.The declaration on line 2 allocates memory space for a reference to a Vector object.

C.The statement on line 2 creates an object of class Vector.

D.The statement on line 3 creates an object of class Vector.

E.The statement on line 3 allocates memory space for an object of class Vector.

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定