2016java基础面试题

发布时间:2017-01-13 15:49

Internet使Java成为网上最流行的编程语言,下面是小编为大家带来的2016java基础面试题,相信对你会有帮助的。

2016java基础面试题(一)

1. What is the #from java程序员面试题来自学优网http://www.gkstk.com/ end#flaw with the Stack class?

2. Explain the Java Class loader mechanism. How would you prevent someone from overriding the ng.Object class?

3. Can interfaces contain inner classes?

4. Explain how you would get a Thread Deadlock with a code example?

5. What happens when you try to serialize a class whose base class does not implement serializable?

6. What happens if you try to pass an int variable to a function that accepts only:

a) long b) Double c) Number ?

7. How can you prevent flow of control to a finally { } clause?

9. Write a program that prints a.b.c.a.b.c and so on 10times using threads?

10. What happens if you try to start a thread thats already been started?

2016java基础面试题(二)

表 A 字段 m , n , x , y ,其中 m,n 为 number 类型 ,x 为字符类型, y 为日期类型

1 、创建表 A 并且 m 不能重复, n 初始值为 , m n y 不能为空

2 、修改表 A 把 n 的初始化值改为 1

文章java程序员面试题出自http://www.gkstk.com/article/wk-5222924908589.html,转载请保留此链接!3 、查询表 A 中 m 大于 50并且 y 为前一天的当前时间以前的所有数据

4 、查询表 A 中 x 字段共有多少种情况,并输出条数大于 20的情况的个数

5 、查询表 A 中 x 为空并且时间介于当前时间与前一天当前时间的所有数据

6 、往表 A 中插入一条数据,令 n 值为 3,x 值为 xyz ,y 值为 2015 年 1 月 1 日 12 点 12 分 12 秒

7 、删除表 A 中所有时间为整点的数据

8 、表 B 与表 A 有相同的数据结构,怎么样把表 A 中的数据倒入表 B 中

9 、数据库的锁,概念,形成原因,你所见过的所有数据库中的锁,锁的解决方案?

2016java基础面试题(三)

1 、把 ab ef ij cd gh 放到 List 里,然后对此 List 快速排序,并打印结果

2 、表 File 中有 2 个字段 file,vcFile,file 为 1 的所相关的 vcFile 的信息,用 jdbc 连接数据库,并打印查询结果的第三条

4 corba 对象里有一个 void corbaPing 怎样通过返回的一个空对象判断其状态?

5 corb 中的 COS 三种实现。

6 WTS 的几种实现形 , 文字描述即可,无需写代码。

7 、纯 java 技术能否实现 jmcp 协议?

8 struts 的 5 个主要的类。并且哪个类为 MVC 中的 C?

Class Test {

System.out.println( b );

static Test{

System.out.println( a );

public Test{

System.out.println( c );

public String out{

System.out.println( 111 );

public class Test1{

public static void main(String args){

System.out.println(out);

问题是1 怎么修改程序让他正确,用尽可能多的方法,并写出执行结果

2 如果只修改 main 函数,能打出 abc 吗? bac 呢?为什么

2、写一个单例的例子

3、String str= WeeciolGmmcc

4、有员工表 , 字段 id ,name,managerid ,还有个啥字段,记不清楚了,没用到,然后查姓名,领导的姓名,如果没领导的话则显示无

id name managerid

1 张三 李四

2 李四 赵六

3 王五 赵六

4 赵六

2016java基础面试题的评论条评论