博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
测试你的Java段位 (转)
阅读量:2496 次
发布时间:2019-05-11

本文共 1636 字,大约阅读时间需要 5 分钟。

因为审稿中发现一个技术问题,查询到Sun公司网站上的Java文档,偶然发现了这个对 。大家不妨试一试。
题目包括:
  1. Java SE 6平台上能够使用哪种脚本语言?
  2. 什么是Unicode文本的规范化?
  3. 怎样启动计算机上的默认浏览器查看特定URL?
  4. 如何给JTable的内容排序?
  5. 使用Java API for XML Web Services (JAX-WS) 2.0将一个方法发布为Web服务操作,应该使用哪个注解(annotation)?
  6. ……
应该说不是非常深,但是涉及面广。由于都是选择题,我虽然对Java 6没有太多经验,还是答了个八九不离十。你呢?
其实学习中多进行这种测试是非常重要的,Java语言本身方面的测试题最好的来源当然是“Java教父”Joshua Bloch(JavaSE5的开发老大,Java Collection API的开发者,目前是Goolge Java方面的老大)的《Java解惑》一书。里面的题目既深入又有趣。
【20070713更新】今天又发现一篇 ,来自Java Developer‘s Journal。其中题目的深度要好得多,一共30道。其中星号的多少表示难度。题目包括:
* Q1. How could Java classes direct program messages to the system console, but error messages, say to a file?
* Q2. What's the difference between an interface and an abstract class?
* Q4. Explain the usage of the keyword transient?
* Q5. How can you force garbage collection?
* Q6. How do you know if an explicit object casting is needed?
* Q7. What's the difference between the methods sleep() and wait()?
……
* Q20. How can a subclass call a method or a constructor defined in a superclass?
……
** Q22. You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?
** Q25. If you're overriding the method equals() of an object, which other method you might also consider?
** Q29. There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it?
……

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10294527/viewspace-122998/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10294527/viewspace-122998/

你可能感兴趣的文章
数组各元素出现的次数
查看>>
我的读书清单(持续更新)
查看>>
53.Maximum Subarray
查看>>
xlistview(脚)
查看>>
咖啡豆(JavaBean)•香
查看>>
hdu2457 Trie图+dp
查看>>
杭电2075
查看>>
ASP.NET Core ---日志
查看>>
Android框架式编程之MVP架构
查看>>
UEditor 插入图片大于2M提示文件大小超出范围解决办法
查看>>
测绘软件使用心得
查看>>
sql 相关子查询
查看>>
python 学习
查看>>
中文/英文换行总结
查看>>
linux中用户忘记root的密码--ubuntu版本
查看>>
Spring Boot 5:应用程序启动时初始化资源
查看>>
JMter随记
查看>>
linux下面安装maven
查看>>
LTTng 简介&使用实战
查看>>
oracle internal: VIEW: X$KCBKPFS - PreFetch Statistics - (9.0)
查看>>