- 浏览: 488489 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (672)
- 随便写写 (3)
- javascript (16)
- Java exam (58)
- JSP exam (25)
- Servlet exam (25)
- Struts exam (24)
- Spring exam (24)
- Hibernate exam (19)
- EJB exam (25)
- SOA exam (6)
- AJAX exam (25)
- Web开发 exam (25)
- 软件工程 exam (25)
- 项目管理 exam (25)
- .NET exam (23)
- ASP.NET exam (24)
- C# exam (24)
- C++ exam (25)
- C语言 exam (13)
- ASP exam (0)
- PHP exam (0)
- Ruby exam (0)
- Python exam (0)
- Delphi exam (0)
- Linux exam (0)
- UNIX exam (25)
- 数据库 exam (24)
- Oracle exam (25)
- SQL Server exam (20)
- MySQL exam (16)
- Mobile开发 exam (10)
- 嵌入式开发 exam (6)
- 网络安全 exam (0)
- 网络技术 exam (0)
- 综合技术 exam (0)
- HR面试 exam (0)
- 英语面试 exam (0)
- 外企面试 exam (0)
- 软件测试 exam (0)
- QTP exam (0)
- LoadRunner exam (0)
- 网友面经 exam (0)
- 应届生 exam (0)
- 面试指导 exam (0)
- IQ测试 exam (0)
- Flex exam (2)
- uml-ea (1)
最新评论
-
dxking100:
远光没有笔式题的说..
最新远光软件笔试题面试题内容(1) -
heming_way:
谢谢,正在复习软件工程考试呢,呵呵
《软件工程》选择题 -
梅玲达:
可以更详细点吗?
Hibernate中Criteria 和DetachedCriteria的作用是什么? -
buptjian:
学习下,试试看,谢谢啊~
Prototype如何实现页面局部定时刷新? -
bubblegum89:
这个。。。和我笔试时候做的 感觉完全不一样
最新远光软件笔试题面试题内容(3)
2.下面代码的输出是什么?一共在内存中生成了几个String对象?为什么?
String s1 = “aaa”;
String s2 = “aaa”;
String s3 = new String(“aaa”);
String s4 = new String(“AAA”);
System.out.println(s1 == s2);
System.out.println(s1 == s3);
System.out.println(s1.equals(s3));
3.下列程序在1处是否会有异常,如果没有,输出是什么?是否会运行到2处,如果会,输出是什么?为什么会有这样的结果?
public class TestClass {
public void test1() {
List list = new ArrayList();
test2(list);
System.out.println(list.size()); // 1处
test3(list);
System.out.println(list.size()); // 2处
}
public void test2(List list) {
list = null;
}
public void test3(List list) {
list.add(“aaaa”);
}
}
4.请选出下面哪些描述是正确的。
public class ClassA {
public synchronized void a(){
}
public synchronized void b(){
}
}
2 instances of ClassA had been instantiated obj1 and obj2.
Which statements about thread are true?
1)One thread is calling obj1.a(), another thread can call obj1.b(). .
2)One thread is calling obj1.a(), another thread cannot call obj1.b().
3)One thread is calling obj1.a(), another thread can call obj2.b(). .
4)One thread is calling obj1.a(), another thread cannot call obj2.b().
5.下面的程序输出是什么?为什么?
public class Parent {
public void test(ArrayList list) {
System.out.println(”invoke parent's test method”);
}
public static void main(String[] args) {
Child a = new Child();
ArrayList list = new ArrayList();
a.test(list);
}
}
class Child extends Parent {
public void test(List list) {
System.out.println(”invoke child's test method”);
}
}
6.下面的程序输出是什么?为什么?
public class Parent {
public void test(List list) {
System.out.println(”invoke parent's test method”);
}
public static void main(String[] args) {
Child a = new Child();
ArrayList list = new ArrayList();
a.test(list);
}
}
class Child extends Parent {
public void test(List list) {
System.out.println(”invoke child's test method”);
}
}
7.仔细分析下面的程序,写出程序的输出结果。
public class Parent {
{
System.out.println(”parent instance block”);
}
public void test() {
System.out.println(”parent test method”);
}
static {
System.out.println(”parent static block”);
}
public Parent() {
System.out.println(”parent constructor”);
test();
}
public static void main(String[] args) {
new Child();
}
}
class Child extends Parent {
private static int staticValue = 20;
private int instanceValue = 20;
{
System.out.println(”child instance block”);
}
public void test() {
System.out.println(”child test method”);
System.out.println(”static value is: ” + staticValue);
System.out.println(”instance value is: ” + instanceValue);
}
static {
System.out.println(”child static block”);
}
public Child() {
System.out.println(”child constructor”);
}
}
8.下面程序的输出是什么?
public class TestException {
public void test1() {
int result = test2();
System.out.println(result);
}
public int test2() {
try{
String s = null;
s.substring(0, 1);
return 1;
} catch(Exception e) {
return 2;
} finally {
return 3;
}
}
public static void main(String[] args) {
(new TestException()).test1();
}
}
9.请写出数据库查询操作的伪代码,程序不需要通过编译,只要思路正确,关键步骤不丢失就可以了。注意异常的捕获,IO流的关闭。可能用到的类或接口有(Connection,DriverManager, Statement, PreparedStatement, ResultSet, SQLException)。
String s1 = “aaa”;
String s2 = “aaa”;
String s3 = new String(“aaa”);
String s4 = new String(“AAA”);
System.out.println(s1 == s2);
System.out.println(s1 == s3);
System.out.println(s1.equals(s3));
3.下列程序在1处是否会有异常,如果没有,输出是什么?是否会运行到2处,如果会,输出是什么?为什么会有这样的结果?
public class TestClass {
public void test1() {
List list = new ArrayList();
test2(list);
System.out.println(list.size()); // 1处
test3(list);
System.out.println(list.size()); // 2处
}
public void test2(List list) {
list = null;
}
public void test3(List list) {
list.add(“aaaa”);
}
}
4.请选出下面哪些描述是正确的。
public class ClassA {
public synchronized void a(){
}
public synchronized void b(){
}
}
2 instances of ClassA had been instantiated obj1 and obj2.
Which statements about thread are true?
1)One thread is calling obj1.a(), another thread can call obj1.b(). .
2)One thread is calling obj1.a(), another thread cannot call obj1.b().
3)One thread is calling obj1.a(), another thread can call obj2.b(). .
4)One thread is calling obj1.a(), another thread cannot call obj2.b().
5.下面的程序输出是什么?为什么?
public class Parent {
public void test(ArrayList list) {
System.out.println(”invoke parent's test method”);
}
public static void main(String[] args) {
Child a = new Child();
ArrayList list = new ArrayList();
a.test(list);
}
}
class Child extends Parent {
public void test(List list) {
System.out.println(”invoke child's test method”);
}
}
6.下面的程序输出是什么?为什么?
public class Parent {
public void test(List list) {
System.out.println(”invoke parent's test method”);
}
public static void main(String[] args) {
Child a = new Child();
ArrayList list = new ArrayList();
a.test(list);
}
}
class Child extends Parent {
public void test(List list) {
System.out.println(”invoke child's test method”);
}
}
7.仔细分析下面的程序,写出程序的输出结果。
public class Parent {
{
System.out.println(”parent instance block”);
}
public void test() {
System.out.println(”parent test method”);
}
static {
System.out.println(”parent static block”);
}
public Parent() {
System.out.println(”parent constructor”);
test();
}
public static void main(String[] args) {
new Child();
}
}
class Child extends Parent {
private static int staticValue = 20;
private int instanceValue = 20;
{
System.out.println(”child instance block”);
}
public void test() {
System.out.println(”child test method”);
System.out.println(”static value is: ” + staticValue);
System.out.println(”instance value is: ” + instanceValue);
}
static {
System.out.println(”child static block”);
}
public Child() {
System.out.println(”child constructor”);
}
}
8.下面程序的输出是什么?
public class TestException {
public void test1() {
int result = test2();
System.out.println(result);
}
public int test2() {
try{
String s = null;
s.substring(0, 1);
return 1;
} catch(Exception e) {
return 2;
} finally {
return 3;
}
}
public static void main(String[] args) {
(new TestException()).test1();
}
}
9.请写出数据库查询操作的伪代码,程序不需要通过编译,只要思路正确,关键步骤不丢失就可以了。注意异常的捕获,IO流的关闭。可能用到的类或接口有(Connection,DriverManager, Statement, PreparedStatement, ResultSet, SQLException)。
发表评论
-
广州喜创信息技术有限公司JAVA 软件工程师笔试题
2010-10-14 18:33 8821.某程序代码如下,当运行java test.ChildCla ... -
怎样才能提高JAVA的性能
2010-10-14 18:33 630提高JAVA的性能,一般考虑如下的四个主要方面:(1) 程序设 ... -
一套英文Java笔试题面试题
2010-10-14 18:33 10521.what is the meaning of JVM ?2 ... -
Collection,Map,HashMap,hashTable,TreeMap,List,Vector,ArrayList的区别
2010-10-14 18:33 884Collection接口,包含list和set子接口Colle ... -
java中有哪些类可用于管理集合对象?
2010-10-14 18:33 727java.util中共有13个类可用于管理集合对象,它们支持集 ... -
广州喜创信息技术有限公司JAVA 软件工程师笔试题
2010-10-12 13:21 7281.某程序代码如下,当运行java test.ChildCla ... -
怎样才能提高JAVA的性能
2010-10-12 13:21 716提高JAVA的性能,一般考虑如下的四个主要方面:(1) 程序设 ... -
一套英文Java笔试题面试题
2010-10-12 13:21 15931.what is the meaning of JVM ?2 ... -
Collection,Map,HashMap,hashTable,TreeMap,List,Vector,ArrayList的区别
2010-10-12 13:21 803Collection接口,包含list和set子接口Colle ... -
java中有哪些类可用于管理集合对象?
2010-10-12 13:21 605java.util中共有13个类可用于管理集合对象,它们支持集 ... -
腾信公司—技术笔试题
2010-10-12 13:20 7781.字符转换;2.数据类型转换;3.HashTable和Has ... -
达内的一份JAVA面试题-CORE JAVA部分(2)
2010-10-12 13:20 112725.数组转换问题。 Object[] object = ... -
30道Java 1.4模拟经典题(2)
2010-10-12 13:20 60516. What results from the follo ... -
在应用程序中使用JavaMail来读取和发送邮件的基本流程
2010-10-12 13:20 734在应用程序中使用JavaMail来读取邮件的基本流程如下: ... -
银丰新融—技术笔试题
2010-10-12 13:20 978一、简述Servlet生命周期?(时间4分钟)二、简述Http ... -
新东方JAVA培训 月考题目(选择部分)
2010-10-12 13:20 814Core Java试题选择填空题: 选择题全部为多选题,只有 ... -
上海达内学员赴贝尔阿尔卡特面试题分享
2010-10-12 13:20 8221.main(String args[])方法中能否调用非静态 ... -
顺驰—技术笔试题
2010-10-12 13:20 7871.Applet与servlet如何通信;2.JSP标签的作用 ... -
Java笔试题 共五道题
2010-10-12 13:20 687笔试题1、写出输出public class Jtest{int ... -
JavaSE笔试题一套带答案(4)
2010-10-12 13:20 917二.填空(40分)1.集合分为___Collection___ ...
相关推荐
一套JAVA笔试题,全面,综合的说明公司所需技术要求,要的快下吧
java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 java笔试题 ...
JAVA笔试题,面试题JAVA笔试题,面试题JAVA笔试题,面试题JAVA笔试题,面试题JAVA笔试题,面试题
Java笔试题 Java笔试题 Java笔试题
java笔试题java笔试题java笔试题java笔试题java笔试题java笔试题java笔试题java笔试题java笔试题java笔试题java笔试题java笔试题
一套英文Java笔试题面试题.doc 1. what is the meaning of JVM ? 2.please explain about Reflection concisely. 3.please explain about web.xml 4.please explian about mainifest.mf 5.what technology are ...
Java笔试题及答案 26 大唐电信JAVA笔试题面试题 27 西安电讯盈科java笔试题 27 华为Java笔试题: 28 Java多线程常见面试题 31 Java企业面试题整理集合(1) 34 Java企业面试题整理集合(2) 43 Java企业面试题整理集合(3...
某公司笔试题java&.net全集收录,包括一套Java笔试题和一套。net笔试题,含答案!
java笔试题面试题java笔试题面试题java笔试题面试题java笔试题面试题java笔试题面试题java笔试题面试题
JAVA笔试题 集锦 JAVA笔试题 集锦 JAVA笔试题 集锦
很不容易收集到的笔试题 很好哦 很强大的 欢迎来下载
100家大公司JAVA笔试题汇总,都是各大公司经典的题目!
java笔试试题变态版,java笔试常考题,各大软件公司面试常考
农行Java笔试题
该文件为山大地纬Java开发岗笔试试题 该文件为山大地纬Java开发岗笔试试题 该文件为山大地纬Java开发岗笔试试题 该文件为山大地纬Java开发岗笔试试题 该文件为山大地纬Java开发岗笔试试题
常见的Java 笔试题 常见的Java 笔试题 常见的Java 笔试题
Java面试笔试题大汇总(最全+详细答案) Java面试笔试题大汇总(最全+详细答案)
2020 兴业银行Java笔试题,记得几道题目,各位有兴趣的同学下载看看。
java笔试题
Java面试笔试题大汇总,求职笔试大全,应聘Java笔试时可能出现问题及其答案包括各大公司笔试题。