SCJP考试题310-025(第一套)

Java国际认证(SCJP)典型试题1000例 高清版 pdf Java国际认证(SCJP)典型试题1000例 高清版 pdf 作者: 施铮 出版社: 电子科技大学出版社 出版年: 2005-8 页数: 493 ISBN: 9787810948142 立即下载
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> 这是SCJP的考试原题,是1999-2000期间的!提供给想考SCJP的参考! 我这还有其他的一些,如果全部打印可能100多页(双面)的样子!我将陆续的在这里粘贴出来!(如果可以的话),一共分为几套!这第一套只有19题,其他的几套有点多,300多题的都有,我归纳的,我同事说看完了它,考试就没问题,所以我就搜集了这么多,我也看的头大,所以发出来给大伙分享,敬请关注!! 1. Which statement are characteristics of the >> and >>> operators. A. >> performs a shift B. >> performs a rotate C. >> performs a signed and >>> performs an unsigned shift D. >> performs an unsigned and >>> performs a signed shift E. >> should be used on integrals and >>> should be used on floating point types C. 2. Given the following declaration String s = "Example"; Which are legal code? A. s >>> = 3; B. s[3] = "x"; C. int i = s.length(); D. String t = "For " s; E. s = s 10; CDE. 3. Given the following declaration String s = "hello"; Which are legal code? A. s >> = 2; B. char c = s[3]; C. s = "there"; D. int i = s.length(); E. s = s 3; CDE. 4. Which statements are true about listeners? A. The return value from a listener is of boolean type. B. Most components allow multiple listeners to be added. C. A copy of the original event is passed into a listener method. D. If multiple listeners are added to a single component, they all must all be friends to each other. E. If the multiple listeners are added to a single component, the order [in which listeners are called is guaranteed]. BC. 5. What might cause the current thread to stop executing. A. An InterruptedException is thrown. B. The thread executes a wait() call. C. The thread constructs a new Thread. D. A thread of higher priority becomes ready. E. The thread executes a waitforID() call on a MediaTracker. ABDE. 6. Given the following incomplete method. 1. public void method(){ 2. 3. if (someTestFails()){ 4. 5. } 6. 7.} You want to make this method throw an IOException if, and only if, the method someTestFails() returns a value of true. Which changes achieve this? A. Add at line 2: IOException e; B. Add at line 4: throw e; C. Add at line 4: throw new IOException(); D. Add at line 6: throw new IOException(); E. Modify the method declaration to indicate that an object of [type] Exception might be thrown. CE. 7. Which modifier should be applied to a method for the lock of the object this to be obtained prior to executing any of the method body? A. final B. static C. abstract D. protected E. synchronized E. 8. Which are keywords in Java? A. NULL B. true C. sizeof D. implements E. instanceof DE. 9. Consider the following code: Integer s = new Integer(9); Integer t = new Integer(9); Long u = new Long(9); Which test would return true? A. (s==u) B. (s==t) C. (s.equals(t)) D. (s.equals(9)) E. (s.equals(new Integer(9)) CE. 10. Why would a responsible Java programmer want to use a nested class? A. To keep the code for a very specialized class in close association with the class it works with. B. To support a new user interface that generates custom events. C. To impress the boss with his/her knowledge of Java by using nested classes all over the place. AB. 11. You have the following code. Which numbers will cause "Test2" to be printed? switch(x){ case 1: System.out.println("Test1"); case 2: case 3: System.out.println("Test2"); break; } System.out.println("Test3"); } A. 0 B. 1 C. 2 D. 3 E. 4 BCD. 12. Which statement declares a variable a which is suitable for referring to an array of 50 string objects? A. char a[][]; B. String a[]; C. String []a; D. Object a[50]; E. String a[50]; F. Object a[]; BCF. 13. What should you use to position a Button within an application frame so that the width of the Button is affected by the Frame size but the height is not affected. A. FlowLayout B. GridLayout C. Center area of a BorderLayout D. East or West of a BorderLayout E. North or South of a BorderLayout E. 14. What might cause the current thread to stop executing? A. An InterruptedException is thrown B. The thread executes a sleep() call C. The thread constructs a new Thread D. A thread of higher priority becomes ready (runnable) E. The thread executes a read() call on an InputStream ABDE. Non-runnable states: * Suspended: caused by suspend(), waits for resume() * Sleeping: caused by sleep(), waits for timeout * Blocked: caused by various I/O calls or by failing to get a monitor's lock, waits for I/O or for the monitor's lock * Waiting: caused by wait(), waits for notify() or notifyAll() * Dead: Caused by stop() or returning from run(), no way out 15. Consider the following code: String s = null; Which code fragments cause an object of type NullPointerException to be thrown? A. if((s!=null) & (s.length()>0)) B. if((s!=null) &&(s.length()>0)) C. if((s==null) | (s.length()==0)) D. if((s==null) || (s.length()==0)) AC. 16. Given the following method body: { if (sometest()) { unsafe(); } else { safe(); } } The method "unsafe" might throw an IOException (which is not a subclass of RunTimeException). Which correctly completes the method of declaration when added at line one? A. public void methodName() throws Exception B. public void methodname() C. public void methodName() throw IOException D. public void methodName() throws IOException E. public IOException methodName() AD. 17. What would be the result of attempting to compile and run the following piece of code? public class Test { static int x; public static void main(String args[]){ System.out.println("Value is " x); } } A. The output "Value is 0" is printed. B. An object of type NullPointerException is thrown. C. An "illegal array declaration syntax" compiler error occurs. D. A "possible reference before assignment" compiler error occurs. E. An object of type ArrayIndexOutOfBoundsException is thrown. A. 18. What would be the result of attempting to compile and run the following piece of code? public class Test { public int x; public static void main(String args[]){ System.out.println("Value is " x); } } A. The output "Value is 0" is printed. B. Non-static variable x cannot be referenced from a static context.. C. An "illegal array declaration syntax" compiler error occurs. D. A "possible reference before assignment" compiler error occurs. E. An object of type ArrayIndexOutOfBoundsException is thrown. B. 19. What would be the result of attempting to compile and run the following piece of code? public class Test { public static void main(String args[]){ int x; System.out.println("Value is " x); } } A. The output "Value is 0" is printed. B. An object of type NullPointerException is thrown. C. An "illegal array declaration syntax" compiler error occurs. D. A "possible reference before assignment" compiler error occurs. E. An object of type ArrayIndexOutOfBoundsException is thrown. D.
scjp题库(中文版) ocjp认证。适合有一定java基础的人看。里面的题比较偏重底层 立即下载

相关推荐

scjp八套试题题库,看了绝对能上90分

scjp八套试题,看了绝对能上90分,背都要背下来

java scjp 试题_JAVA认证历年真题:SCJP考试真题和解析

1. Which of the following range of short is correct?A.-27 -- 27-1B.0 -- 216-1C.–215 -- 215-1D.–231 -- 231-1翻译下面哪些是short型的取值范围。答案C解析 短整型的数据类型的长度是16 bits,有符号。另外需要说明的是java中所有的整(Integral)数(包括byte,short,in...

weixin_34184682的博客 926

SCJP题库

里面有certkiller和testkiller共500多道题<br>做完里面的题差不多就能过了,我考试的时候有20道左右的题目跟里面的一模一样

整理SCJP考试题-1

google_ad_client = "pub-8800625213955058";/* 336x280, 创建于 07-11-21 */google_ad_slot = "0989131976";google_ad_width = 336;google_ad_height = 280;//<script type="text/java

java专栏 438

scjp试题

上面有很多试题,欢迎大家平分

芯片设计新思路:如何用SystemC+TLM2.0快速搭建ESL性能模型(附GEM5实战案例)

本文探讨了在芯片设计早期利用SystemC和TLM2.0标准快速构建电子系统级(ESL)性能模型的方法。通过对比不同抽象层次,详细介绍了如何搭建事务级模型,并与GEM5仿真平台协同,实现高效的架构探索和性能评估。文章最后通过一个片上网络(NoC)带宽优化的实战案例,展示了该方法如何驱动数据驱动的设计决策,从而在流片前规避风险、优化芯片性能。

fire9的博客 371

java scjp 试题_JAVA认证:78道SCJP考试试题精解

JAVA认证:78道SCJP考试试题精解 QUESTION NO: 70 Which statement about static inner classes is true? A. An anonymous class can be declared as static. B. A static inner class cannot be a static member of the outer...

weixin_29617841的博客 545

【实战】——零代码玩转Supervisely人像分割:从标注到模型训练的数据流水线搭建

本文详细介绍了如何零代码使用Supervisely平台搭建人像分割数据流水线,从智能标注到数据集格式转换,再到模型训练与优化。Supervisely的智能标注工具和协作功能大幅提升了人像分割项目的效率,特别适合视频会议背景虚化、虚拟试衣等应用场景。

weixin_30694389的博客 416

60道SCJP考试真题精解

60道SCJP考试真题精解 短整型的数据类型的长度是16 bits,有符号。另外需要说明的是java中所有的整(Integral)数(包括byte,short,int,long)全是有符号的。 Java的标识符可以以一个Unicode字符,美元符($)开始,下滑线(_),后续字符可以是前面的符号和数字,没有长度限制,大小写敏感,不能是保留字。 十六进制数以0x开头,long型数以L(大小写均可,一般使用大写,因为小写的l和数字1不易区分)。 String类型可以直接使用+进行连接运算。

u014447560的博客 686

CAPL编程入门:从零开始掌握汽车通信脚本语言

本文详细介绍了CAPL编程的基础知识,从开发环境搭建到核心语法精要,再到总线通信实战和高级调试技巧。CAPL作为汽车通信脚本语言,专为CAN、LIN等网络协议设计,帮助工程师高效完成车载网络测试。通过实战案例和性能优化建议,读者可以快速掌握CAPL编程技能。

s1t2u3的博客 982

使用 Simulink Real-Time 搭建一个完整的实时信号采集与滤波系统模型

本文详细介绍了基于Simulink Real-Time构建实时信号采集与滤波系统的完整流程。主要内容包括:系统配置(模型创建与参数设置)、信号采集模块搭建(模拟信号源或真实硬件连接)、实时滤波器设计(浮点/定点)、输出可视化(Scope/ToWorkspace等)、模型编译与下载到目标机、外部模式在线调试及数据保存方法。系统可实现微秒级实时信号处理,适用于工业控制、航空航天等对时间确定性要求高的场景。文章还提供了优化建议(多速率建模、优先级调度等)和应用场景说明,帮助读者快速掌握实时系统开发的核心技能。

amy_mhd的博客 304

SCJP考试题310-025(第二套)51-91/147

google_ad_client = "pub-8800625213955058";/* 336x280, 创建于 07-11-21 */google_ad_slot = "0989131976";google_ad_width = 336;google_ad_height = 280;//<script type="text/java

java专栏 472

RT-DETR算法优化改进:轻量级上采样CARAFE算子 | 注意力机制大作战

上采样操作CARAFE,具有感受野大、内容感知、轻量级、计算速度快等优点,引入RT-DETR二次创新;1)代替Upsample进行使用;

①答疑群聊服务;②YOLO大模型知识问答系统;③计算机视觉论文生成智能体; 1267

SCJP考试题310-025

这都是考试原题,有心人可以收集收集,会让你收益匪浅这是前18套310-025 Leading the way in IT testing and certification tools, www.testking.com Question No: 1 Given: 1. public class test ( 2. public static void main (String arg

Fantasy 2020

3D深度饼图的QT实现

首先,我们需要创建一个QT项目并创建一个窗口,用于显示我们的饼图。在QT Creator中,选择创建一个新的QT Widgets应用程序项目,并创建一个新的窗口类。在本文中,我将介绍如何使用QT实现一个3D深度饼图(Pie 3D)的可视化效果。在构造函数中,我们将创建一个饼图(QChartView)并设置饼图的数据。这是一个简单的示例,您可以根据需要自定义和扩展代码来创建更复杂的饼图。现在,我们已经完成了3D深度饼图的QT实现。您将看到一个具有相应数据的3D深度饼图显示在窗口中。3D深度饼图的QT实现。

CodeJolt的博客 277

Windows服务器环境下 OpenCode Skill 下载与运行全流程实战指南(小白版)

Windows服务器环境下 OpenCode Skill 下载与运行全流程实战指南(小白版),OpenCode技能安装与使用指南,分为四个步骤:1)准备Windows服务器环境并确认OpenCode可用;2)通过Git或直接下载方式获取Skill;3)配置技能路径至.opencode/config.json;4)运行测试技能。关键点包括路径配置必须使用双反斜杠、确保Python环境正确安装、管理员权限运行等。文中提供了文本总结技能的完整案例,从创建skill.yaml和main.py到注册运行的全流程,并针

专注于编程、AI、人工智能等多个领域内容研究和分析 1083

java storedmap_SCJP考试题310-025(第二套)19-50/147

我在网上见到很多关于SCJP考试的说法,很多人说他简单!确实是这样的!但是这种说法只是当你拿到拿仅有的一套题的时候,你可以这样说!有人说他考的相当全面,确实是这样的,当你看到这一两百套题给你的时候,你就会有此感悟!呵呵!头晕啊!它考的好多地方都是你在看资料的时候不留心的地方你得不时的翻箱倒柜的找资料!这第2套题有147道题,你可以将它收集起来!当你留心看的时候,你的心就宛如一团乱麻,天那,这考的什...

weixin_39657300的博客 1018

8、对比 LightGBM、XGBoost 和深度学习

本文对比了LightGBM、XGBoost和深度学习模型(特别是TabTransformer)在处理表格数据时的性能差异。从模型复杂度、数据准备、训练时间、准确性和适用场景等方面进行分析,重点探讨了三者在人口普查收入预测任务中的表现。文章详细介绍了XGBoost与LightGBM的核心特性与区别,深入讲解了TabTransformer的架构与实现,并涵盖了分类特征编码、缺失值处理和类别不平衡等关键数据预处理技术,为选择合适的表格数据建模方法提供了实践指导。

julia4scientist的博客 121

SCJP考试题310-025(第二套)18-50/147

google_ad_client = "pub-8800625213955058";/* 336x280, 创建于 07-11-21 */google_ad_slot = "0989131976";google_ad_width = 336;google_ad_height = 280;//<script type="text/java

java专栏 453

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

SIMATIC S7-1200, S7-1500 PID 控制[手册]

SIMATIC S7-1200, S7-1500 PID 控制[手册]

SCJP认证

 即Sun Certified Java Programmer。SCJP 主要测验对 Java 程序设计的观念和能力, 内容偏重于Java的语法及JDK的内容。一、SCJP有什么好处通过 Sun 任何一门专业认证后,你将会收到 Sun Microsystems 总公司寄发的资格证书及徽章,并有权将通过 Sun 认证的标记印在个人名片上,代表个人技术能力的肯定。并不需要特别的背景才可以报考二、SCJ

认证专栏 2267

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

scjp报考流程

一、考试信息   1、考试科目SCJP   2、考试编号:310-025   3、考试题型:单选题、多选题、填空题   4、及格分数:61%   5、考试时间:120分钟   6、考试费用:人民币1250元   二、报考步骤   1、向Sun培训部购买准考证(Certification Voucher)   考试中心的相关资料请浏览以下网址:http://www

Ogelsvy的专栏 5855

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

SCJP考试题310-025(第二套)18/147

google_ad_client = "pub-8800625213955058";/* 336x280, 创建于 07-11-21 */google_ad_slot = "0989131976";google_ad_width = 336;google_ad_height = 280;//<script type="text/java

java专栏 454

SCJP考试题310-025(第二套)91-/147

google_ad_client = "pub-8800625213955058";/* 336x280, 创建于 07-11-21 */google_ad_slot = "0989131976";google_ad_width = 336;google_ad_height = 280;//<script type="text/java

java专栏 419

SCJP考试19-50题

 网上见到很多关于SCJP考试的说法,很多人说他简单!确实是这样的!但是这种说法只是当你拿到拿仅有的一套题的时候,你可以这样说!有人说他考的相当全面,确实是这样的,当你看到这一两百套题给你的时候,你就会有此感悟!呵呵!头晕啊!它考的好多地方都是你在看资料的时候不留心的地方你得不时的翻箱倒柜的找资料!这第2套题有147道题,你可以将它收集起来!当你留心看的时候,你的心就宛如一团乱麻,天那,这考的什么

首席技术执行官CTO(Chief Technology Officer)|技术总监--邓斌博客 1438

SCJP考试

前言   无论你是个新手,还是程序设计方面的专家,你都会惊异于Sun公司Java的无穷魅力。Java带给你的并不仅仅是面向对象、开放、平台无关、易用、安全和“Write once, run anywhere”等软件开发方面的优势,更重要的一点是,它提供了一种新颖的表达思想的方式,一种全新的思维模式。随着待解决问题的规模不断膨胀,Java彻底的面向对象思想的灵活性就会凸现出来。毋庸置疑,

878
上一篇: Java中实现基于Aspectwerkz的AOP开发
下一篇: 整理SCJP考试题-1
java169
博客等级 码龄19年 27粉丝 2568原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值