奥鹏作业答案-谋学网-专业的奥鹏在线作业答案辅导网【官网】

 找回密码
 会员注册

微信登录,扫一扫

手机号码,快捷登录

VIP会员,3年作业免费下 !奥鹏作业,奥鹏毕业论文检测新手作业下载教程,充值问题没有找到答案,请在此处留言!
2022年5月最新全国统考资料投诉建议,加盟合作!点击这里给我发消息 点击这里给我发消息
奥鹏课程积分软件(2021年最新)
查看: 856|回复: 3

[电子科技大学]20春《JAVA程序设计》在线作业2

[复制链接]
发表于 2020-5-18 10:00:39 | 显示全部楼层 |阅读模式
谋学网
奥鹏】-[电子科技大学]20春《JAVA程序设计》在线作业2
试卷总分:100    得分:100
第1,若在某一个类定义中定义有方法:abstract void f();则该类是
A、public类
B、final类
C、抽象类
D、不能确定
正确资料:


第2题,A class design requires that a member variable should be accessible only by same package, which modifer word should be used?
A、protected
B、public
C、no modifer
D、private
正确资料:


第3题,在Java语言中,         包是自动导入的。
A、java.lang
B、java.awt
C、java.applet
D、java.io
正确资料:


第4题,Java语言中,         是所有类的根类。
A、Object
B、Root
C、Thread
D、Applet
正确资料:


第5题,关键字super的作用是
A、用来访问父类被隐藏的成员变量
B、用来调用父类中被重载的方法
C、用来调用父类的构造方法
D、以上都是
正确资料:


第6题,构造方法在         时候被调用。
A、类定义时
B、创建对象时
C、调用对象方法时
D、使用对象的变量时
正确资料:


第7题,下列叙述中不正确的是
A、abstract不能与final并列修饰同一个类
B、abstract类中不可以有private的成员
C、abstract方法必须在abstract类中
D、static方法中能直接处理非static的属性
正确资料:


第8题,Java源文件中最多只能有一个         类,其他类的个数不限。
A、abstract
B、public
C、final
D、interface
正确资料:


第9题,实现下列         接口可以对TextField对象的事件进行监听和处理。
A、ActionListener
B、FocusListener
C、MouseMotionListener
D、WindowListener
正确资料:


第10题,以下         方法用于定义线程的执行体(线程体)。
A、start()
B、init()
C、run()
D、synchronized()
正确资料:


第11题,Java Application源程序文件的扩展名为
A、.java
B、.class
C、.html
D、.exe
正确资料:


第12题,Java语言是在         语言基础上衍生的。
A、pascal
B、C
C、C++
D、VF
正确资料:


第13题,下面         函数是public void example(int k){...}的重载函数。
A、public void example( int m){...}
B、public int example(int k){...}
C、public void example2(int k){...}
D、public int example( int m, float f){...}
正确资料:


第14题,监听器接口的方法返回值是
A、int
B、String
C、void
D、Object
正确资料:


第15题,Thread类的方法中,toString()方法的作用是
A、只返回线程的名称
B、返回当前线程所属的线程组的名称
C、返回当前线程对象
D、返回线程的字符串信息
正确资料:


第16题,下面是类A的构造函数声明,其中正确的是
A、void A(int x){...}
B、A(int x){...}
C、a(int x){...}
D、void a(int x){...}
正确资料:


第17题,Which modifier should be applied to a method for the lock of object "this" to be obtained prior to excution any of the method body?
A、synchronized
B、abstract
C、final
D、static
正确资料:


第18题,class A
{public int getNumber(int a){return a+1;}}
class B extends A
{public int getNumber(int a, char c){return a+2;}public static void main(String[] args){B b=new B();System.out.println(b.getNumber(0));}}
what is the result?
A、compilation succeeds and 1 is printed
B、compilation succeeds and 2 is printed
C、compilation succeeds and 3 is printed
D、An error at this program cause compilation to fail
正确资料:


第19题,public class Test{public static void main(String[] args){String a=args[1];String b=args[2];String c=args[3];}}
execute command:java Test Red Green Blue
what is the value of c?
A、c has value of null
B、c has value of Blue
C、the code does not compile
D、the program throw an exception
正确资料:


第20题,如下             方法可以将MenuBar加入Frame中。
A、setMenu()
B、setMenuBar()
C、add()
D、addMenuBar()
正确资料:


第21题,(   )字符串分为两大类,一类是字符串常量,使用StringBuffer类的对象表示;另一类是字符串变量,使用String类的对象表示。
A、错误
B、正确
正确资料:


第22题,(   )子类要调用父类的方法,必须使用super关键字。
A、错误
B、正确
正确资料:


第23题,(   )如果p是父类Parent的对象,而c是子类Child的对象,则语句c = p是正确的。
A、错误
B、正确
正确资料:


第24题,(   )用“+”可以实现字符串的拼接,用“-”可以从一个字符串中去除一个字符子串。
A、错误
B、正确
正确资料:


第25题,(   )A subclass inherits all methods ( including the constructor ) from the superclass.
A、错误
B、正确
正确资料:


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?会员注册

×
奥鹏作业答案,奥鹏在线作业答案
发表于 2020-5-18 10:08:10 | 显示全部楼层
奥鹏作业答案,奥鹏在线作业答案
回复

使用道具 举报

发表于 2020-5-18 10:34:24 | 显示全部楼层
奥鹏作业答案,奥鹏在线作业答案
回复

使用道具 举报

发表于 2020-5-18 11:24:51 | 显示全部楼层
奥鹏作业答案,奥鹏在线作业答案
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

 
 
客服一
客服二
客服三
客服四
点这里给我发消息
点这里给我发消息
谋学网奥鹏同学群2
微信客服扫一扫

QQ|关于我们|联系方式|网站特点|加入VIP|加盟合作|投诉建议|法律申明|Archiver|小黑屋|奥鹏作业答案-谋学网 ( 湘ICP备2021015247号 )

GMT+8, 2024-4-26 11:57 , Processed in 0.098818 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

快速回复 返回顶部 返回列表