类Student的声明如下:   package com.school class Student{ String name;  int age;  Student(String name,int age){  //code } void study(String subject){ / /code } }  正确调用方法study(String subject)的是哪项?() 

A . Student stu = new Student(“Tom”,23); stu.study(“数学”); B . Student.study(“数学”); C . Student stu = new Student(“Tom”,23); stu.study(); D . Student stu = new Student(“Tom”,23); String result=stu.study(“数学”);

时间:2022-10-10 17:30:00 所属题库:Java认证考试综合练习题库

相似题目