[if !supportLists]1. [endif]属性;Oracle和mysql事务方面的处理?
[if !supportLists]a) [endif]提交方式:oracle默认不自动提交,需要用户手动提交。mysql默认是自动提交。
[if !supportLists]2. [endif]Mysql有哪几种引擎?
[if !supportLists]a) [endif]Myiasm引擎:非事务安全,适用于查询,表级锁, 粒度大,可以全文检索;
[if !supportLists]b) [endif]Innodb引擎(默认该引擎):事务安全,适用于增加,修改,行级锁,不可以全文检索;
[if !supportLists]3. [endif]数据库设计三大范式?
[if !supportLists]a) [endif]第一范式,字段必须具有原子性,不可再分;
[if !supportLists]b) [endif]第二范式建立在第一范式之上,非码属性必须完全依赖于候选码;
[if !supportLists]c) [endif]第三范式建立在第二范式之上, 任何非主属性不依赖于其他非主
[if !supportLists]4. [endif]多线程有哪些状态?
[if !supportLists]a) [endif]新建状态: 当用new操作符创建一个线程时;
[if !supportLists]b) [endif]就绪状态: 要执行线程,必须调用线程的start()方法;
[if !supportLists]c) [endif]运行状态: 当线程获得CPU时间后,它才进入运行状态,真正开始执行run()方法。;
[if !supportLists]d) [endif]阻塞状态: 线程运行过程中,可能由于各种原因进入阻塞状态, 阻塞状态是正在运行的线程没有运行结束,暂时让出CPU,这时其他处于就绪状态的线程就可以获得CPU时间,进入运行状态。;
[if !supportLists]e) [endif]死亡状态: 有两个原因会导致线程死亡:(1.正常结束正常死亡;2.一个未捕获的异常终止了run()导致线程猝死);
[if !supportLists]5. [endif]多线程有什么作用?
[if !supportLists]a) [endif]让CPU负载均衡,提高CPU的利用率,充分利用CPU的资源;
[if !supportLists]b) [endif]充分使用CPU空闲的能力,CPU是单线程的,java支持多线程,
[if !supportLists]c) [endif]多核CPU,充分利用他的性能;
[if !supportLists]d) [endif]提高计算机的资源利用率,解决CPU的负载均衡;
[if !supportLists]e) [endif]应对并发访问,降低资源的开销;
[if !supportLists]6. [endif]多线程是怎么实现的?
[if !supportLists]a) [endif]继承了thread,重写run();
[if !supportLists]b) [endif]实现Runnable接口,重写run();
[if !supportLists]1. [endif]建议使用实现该接口,创建线程,因为这样
[if !supportLists]c) [endif]通过线程池创建线程;
[if !supportLists]d) [endif]通过Callable和FutureTask创建线程
[if !supportLists]7. [endif]Final,finally,finalize各是什么?
[if !supportLists]a) [endif]Final修饰一个类是不可被继承的,修饰一个方法是不可被,修饰一个变量是不可被更改的常量;
[if !supportLists]8. [endif]Mybatis的优点,为什么使用mybatis而不使用原生的JDBC?
[if !supportLists]a) [endif]与JDBC相比,减少了50%以上的代码量;
[if !supportLists]b) [endif]Mybatis的是最简单的持久层框架;
[if !supportLists]c) [endif]MyBatis相当灵活,不会对应用程序或者数据库的现有设计强
[if !supportLists]d) [endif]加任何影响,SQL写在XML里,从程序代码中彻底分离,降低耦合度,便于统一管理和优化,并可重用。
[if !supportLists]e) [endif]提供XML标签,支持编写动态SQL语句。
提供映射标签,支持对象与数据库的ORM字
����<�ǤU
网友评论