11-java软件工程师面试
题
快递公司问题件快递公司问题件货款处理关于圆的周长面积重点题型关于解方程组的题及答案关于南海问题
----------------------------精品word文档 值得下载 值得拥有----------------------------------------------
姓名: 面试日期与时间: 年 月 日 :
为了更全面地了解你的专业能力,请你尽力回答以下问题,谢谢合作~
1. SQLSERVER有numeric类型自动序列递增~请简述一下ORACLE中是如何实现序列自动自增功能的。
2. 写出ORACLE中的日期函数。
3. 简述一下STRUCTS的组成和处理过程。
4. What will be the output when you compile and execute the following program.
public class Base{
private void test() {
int i = 1;
switch (i) {
case 0:
System.out.println("zero");
break;
case 1:
System.out.println("one");
case 2:
System.out.println("two");
default:
System.out.println("default"); }
}
static public void main(String[] a) { new Base().test();
}
}
Select most appropriate answer. a) one b) one, default
c) one, two, default d) default e) Compilation Error. switch cannot take an int as an argument
5. For what value of i, the following program will output "Less than 20"
public class Base{
private void test() {
int i ;
if(i < 10)
System.out.println("Less than 10"); else
if ( i < 20)
System.out.println("Less than 20"); else
System.out.println("Not less than 10"); }
static public void main(String[] a) { new Base().test();
}
----------------------------精品word文档 值得下载 值得拥有----------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------
----------------------------精品word文档 值得下载 值得拥有----------------------------------------------
}
第1页, 共 页 Select all appropriate answers.
a) 0 b) 10 c) 11
d) 19.999; e) (int)19.99 f) None
6. For what value of i, the following program will output "Not Greater than 10"
public class Base{
private void test() {
int i ;
if(i > 10)
System.out.println("Greater than 10"); else
if ( i < 10)
System.out.println("Less than 10"); else
if ( i > 20)
System.out.println("Greater than 20"); else
System.out.println("Not Greater than 10"); }
static public void main(String[] a) { new Base().test();
}
}
Select most appropriate answer.
a) 0 b) 10 c) 11 d) 100 e) None
7. The method test() throws an IOException. How do you specify that ?
import java.io.*;
import java.net.*;
public class Base{
private void test()
{
String a = null;
if(a == null)
//throws IOException
}
}
Select all valid answers
a) private void test() throw IOException b) private void test() throw new IOException("") c) private void test() throws IOException() d) private void test() throws IOException e) private void test() raise IOException
----------------------------精品word文档 值得下载 值得拥有----------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------
----------------------------精品word文档 值得下载 值得拥有----------------------------------------------
答题区:
答题人签名: 日期:20 年 月 日 第2页, 共 页
答题区:
----------------------------精品word文档 值得下载 值得拥有----------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------
----------------------------精品word文档 值得下载 值得拥有----------------------------------------------
答题人签名: 日期:20 年 月 日 第 页, 共 页
答案:
1. 通过设置序列
2. Datetime timestamp
3. MVC model view contro
4. b
5. c d
6. b
7. d
----------------------------精品word文档 值得下载 值得拥有----------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------