• 2022-06-06
    给出如下类定义: public class test { test(int k) { } }如果要创建一个该类的对象,正确的语句是:
    A: test obj1 = new test('5 ');
    B: test obj1 = new test(5);
    C: test obj1 = new test(3.4);
    D: test obj1 = new test();