英文Java面试题
内容摘要:本文是本站从国外知名的java技术网站搜来的,为即将参加IT外企的java软件工程师面试的开发人员精心准备的。软件开发行业的外企面试一般都是全英文哦(技术面试和非技术面试)。
内容正文:
* Q16. Can an inner class declared inside of a method access local variables of this method?
A. It's possible if these variables are final.
* Q17. What can go wrong if you replace && with & in the following code:
String a=null; if (a!=null && a.length()>10) {...}
A. A single ampersand here would lead to a NullPointerException.
* Q18. What's the main difference between a Vector and an ArrayList
A. Java Vector class is internally synchronized and ArrayList is not. * Q19. When should the method invokeLater()be used?
A. This method is used to ensure that Swing components are updated through the event-dispatching thread.
* Q20. How can a subclass call a method or a constructor defined in a superclass?
A. Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass's constructor.
For senior-level developers:
** Q21. What's the difference between a queue and a stack?
A. Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule
** 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?
A. Sometimes. But your class may be a descendent of another class and in this case the interface is your only option.
30道英文Java面试题附英文答案(1-15) 细致的答案及题目。细致的答案及题目。隐藏>> 内容摘要: 如果你打算参加 IT 外企的 java 软件工程师面试的话,本文你点...
java中文英文面试题库_面试_求职/职场_实用文档。外企java面试,中文英文解答。JAVA 最新面试题 --附英文面试题 Heroyanglei · 1、当一段 SQL 执行很慢时,...
25页 5财富值 100道英文面试题及答案 暂无评价 30页 免费 30道英文Java面试题附英文... 3页 1财富值喜欢此文档的还喜欢 天津海运职业学院GMDSS英语... ...
Java 基础找错面试题(2)_答案_IT/计算机_专业资料。java 面向对象 找错题及答案 1. abstract class Name { private String name; public abstract boolean...
13页 免费 英语名词复数变化及发音规... 6页 免费搜你所想,读你所爱 拒绝盗版,营造绿色文库 如要投诉违规内容,请到百度文库投诉中心;如要提出功能问题或...
新概念英语第一册单词16-30_法语学习_外语学习_教育专区。新概念英语第一册... 2015国考申论押密试卷及答案 2015国考面试通关宝典120份文档 2014年细分行业...
新概念英语第一册单词16-30_法语学习_外语学习_教育专区。新概念英语第一册... 2015国考申论押密试卷及答案 2015国考面试通关宝典120份文档 2014年细分行业...
热门文档