【计算机类职业资格】二级JAVA机试-94及答案解析.doc

上传人:bowdiet140 文档编号:1326614 上传时间:2019-10-17 格式:DOC 页数:2 大小:37KB
下载 相关 举报
【计算机类职业资格】二级JAVA机试-94及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】二级JAVA机试-94及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、二级 JAVA 机试-94 及答案解析(总分:100.00,做题时间:90 分钟)一、1基本操作题(总题数:1,分数:30.00)(分数:30.00)A.B.C.D.A.B.C.D.二、2简单应用题(总题数:1,分数:40.00)(分数:40.00)A.B.C.D._三、3综合应用题(总题数:1,分数:30.00)(分数:30.00)_二级 JAVA 机试-94 答案解析(总分:100.00,做题时间:90 分钟)一、1基本操作题(总题数:1,分数:30.00)(分数:30.00)A.B. C.D.解析:A.B.C. D. 解析:分析 本题首先要将用户输入的数字字符转换成 int 型的十进制数

2、所以调用 parseInt(String str)方法将 xVal 和 yVal 转换成 int 型,所以第一处应填入“xVal”。JOption- Pane.showMessageDialog()方法用于显示消息对话框,所以第二处应填入“ShowMessageDialog”。二、2简单应用题(总题数:1,分数:40.00)(分数:40.00)A.B. C.D.解析:_解析:三、3综合应用题(总题数:1,分数:30.00)(分数:30.00)_正确答案:(implements)解析:_正确答案:(addActionListener)解析:分析 本程序中定义的类 Java_3 实现了 ActionListener 接口,所以第一处应填入“implements”。在 main()方法中,实例化 Java_3 的一个对象 tb,根据向上的传递性,出也具有ActionListener 接口的方法和属性,所以在为 Button 注册监听器时用到了 b.addActionListener (tb)方法,所以第二处应填入“addActionListener”。

展开阅读全文
相关资源
猜你喜欢
  • NBN EN ISO 1460-1995 3750 Metallic coatings - Hot dip galvanized coatings on ferrous materials - Gravimetric determination of the mass per unit area (ISO 1460 1992)《金属镀层 铁类材料的热浸镀锌涂.pdf NBN EN ISO 1460-1995 3750 Metallic coatings - Hot dip galvanized coatings on ferrous materials - Gravimetric determination of the mass per unit area (ISO 1460 1992)《金属镀层 铁类材料的热浸镀锌涂.pdf
  • NBN EN ISO 1886-1995 1875 Reinforcement fibres - Sampling plans applicable to received batches (ISO 1886 1990)《纺织玻璃纤维 批量纤维取样法(ISO 1886-1990)》.pdf NBN EN ISO 1886-1995 1875 Reinforcement fibres - Sampling plans applicable to received batches (ISO 1886 1990)《纺织玻璃纤维 批量纤维取样法(ISO 1886-1990)》.pdf
  • NBN EN ISO 2871-2-1995 8125 Surface active agents - Detergents - Determination of cationic-active matter content - Part 2  Cationic- active matter of low molecular mass (between 20.pdf NBN EN ISO 2871-2-1995 8125 Surface active agents - Detergents - Determination of cationic-active matter content - Part 2 Cationic- active matter of low molecular mass (between 20.pdf
  • NBN EN ISO 3219-1995 5000 Plastics - Polymers resins in the liquide state or as emulsions or dispersions - Determination of viscosity using a rotational viscometer with defined she.pdf NBN EN ISO 3219-1995 5000 Plastics - Polymers resins in the liquide state or as emulsions or dispersions - Determination of viscosity using a rotational viscometer with defined she.pdf
  • NBN EN ISO 3543-1995 0000 Metallic and non-metallic coatings - Measurement of thickness - Beta backscatter method (ISO 3543 1981)《金属和非金属涂层 厚度测量 射线反向散射法(ISO 3543-1981)》.pdf NBN EN ISO 3543-1995 0000 Metallic and non-metallic coatings - Measurement of thickness - Beta backscatter method (ISO 3543 1981)《金属和非金属涂层 厚度测量 射线反向散射法(ISO 3543-1981)》.pdf
  • NBN EN ISO 3613-1995 0625 Chromate conversion coatings on zinc and cadmium - Test methods (ISO 3613 1980)《锌,镉,铬酸盐转化镀层 试验方法(ISO 3613-1980)》.pdf NBN EN ISO 3613-1995 0625 Chromate conversion coatings on zinc and cadmium - Test methods (ISO 3613 1980)《锌,镉,铬酸盐转化镀层 试验方法(ISO 3613-1980)》.pdf
  • NBN EN ISO 3868-1995 3750 Metallic and other non-organic coatings - Measurement of coating thicknesses - Fizeau multiple-beam nterferometry method (ISO 3868 1976)《金属和非金属涂层 厚度测量 菲索(.pdf NBN EN ISO 3868-1995 3750 Metallic and other non-organic coatings - Measurement of coating thicknesses - Fizeau multiple-beam nterferometry method (ISO 3868 1976)《金属和非金属涂层 厚度测量 菲索(.pdf
  • NBN EN ISO 3882-1995 7500 Metallic and other non-organic coatings - Review of methods of measurement of thickness (ISO 3882 1986)《金属和其他无机物覆层 厚度测量方法述评(ISO 3882-1986)》.pdf NBN EN ISO 3882-1995 7500 Metallic and other non-organic coatings - Review of methods of measurement of thickness (ISO 3882 1986)《金属和其他无机物覆层 厚度测量方法述评(ISO 3882-1986)》.pdf
  • NBN EN ISO 3892-1995 5625 Conversion coatings on metallic materials - Determination of coating mass per unit area - Gravimetric methods (ISO 3892 1980)《金属材料的转化涂层 单位面积涂层质量的测定 重量分析法(.pdf NBN EN ISO 3892-1995 5625 Conversion coatings on metallic materials - Determination of coating mass per unit area - Gravimetric methods (ISO 3892 1980)《金属材料的转化涂层 单位面积涂层质量的测定 重量分析法(.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1