JAVA基础题 求大神救救孩子
2)Aspecialmethodthatisinvokedtosetupanobjectduringinstantiationiscalleda_____________...
2) A special method that is invoked to set up an object during instantiation is called a __________________.
a) new method
b) dot operator
c) creator
d) constructor
e) destructor
3) Which of the following is an invalid way to instantiate a String object?
a) String title = new String(“Java Software Solutions”);
b) String name = “John Lewis”;
c) String empty = “”;
d) String alsoEmpty = new String(“”);
e) all of the above are valid 展开
a) new method
b) dot operator
c) creator
d) constructor
e) destructor
3) Which of the following is an invalid way to instantiate a String object?
a) String title = new String(“Java Software Solutions”);
b) String name = “John Lewis”;
c) String empty = “”;
d) String alsoEmpty = new String(“”);
e) all of the above are valid 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询