`
miraclerz
  • 浏览: 97082 次
社区版块
存档分类
最新评论
文章列表
QUESTION 41 Given the exhibit:   What is the result when this code executed?  A. 1 B. 3 C. 123 D. 321 E. The code runs with no output  
QUESTION 36 Given the exhibit:   C. System.property ("prop.custom");   D. System.getProperty ("prop.custom"); 根据系统参数来取出对应的参数内容 E. System.getProperties ( ).getProperty ("prop.custom");  取得所有系统参数的名称,再从中取得“prop.custom”的值
QUESTION 31 Exhibit: What is the output of the program shown in the exhibit?  A. 300.100.100.100.100 B. 300.300.100.100.100 C. 300.300.300.100.100 D. 300.300.300.300.100     Answer: ( B )
QUESTION 25 Exhibit: What is the result? A. Value is : 8 B. Compilation fails. C. Value is : 12 D. Value is ; -12 E. The code runs with no output F. An exception is thrown at runtime.    
QUESTION 18 Exhibit:   What is the result?  A. The code will deadlock B. The code may run with no output C. An exception is thrown at runtime D. The code may run with output " 0 6 " E. The code may run with output "2 0 6 4" F. The code may run with output "0 ...

SCJP真题库更新5

    博客分类:
  • SCJP
QUESTION 14 Given the exhibit: Which statement is true?  A. This code may throw an InterruptedException B. This code may throw an IllegalStateExcepion C. This code may throw a TimeOutException after ten minutes D. This code will not compile unless "obj.wait ( ) \" is replaced w ...
QUESTION 10 Given the exhibit: What is the result?  A. short Long B. SHORT LONG C. Compilation fails D. An exception is thrown at runtime     Answer: ( C )   向上就¿
QUESTION 6 Given: System.out.printf("Pi is approximately %f and E is approximately %b", Math.PI, Math.E); Place the values where they would appear in the output.     Answer: (  ) 3.141593 True     -----------判断E是否是NULL,         NULL是FA
QUESTION 3 Given the exhibit.   What is the result?  A. 0 B. 1 C. 4 D. Compilation fails     E. An exception is thrown at runtime    
• 考试大纲  第一部分:Java语言基础  第二部分:流程控制  第三部分:面向对象 封装,继承,多态  第四部分:异常处理  第五部分:多线程  第六部分:Java 垃圾回收机制  第七部分:Java I/O  第八部分:Java集合和泛型  第九部分:Java SE实用API QUESTION 1 Given the code in the exhibit. What is the result?   A. Compilation fails B. An exception is thrown at runtime. C. An instance of F ...
1)  Criteria    Criteria:面向的是POJO类    Criterion:条件对象         Property.forName("").xxxx();专门针对某个属性 Restriction.xxx();   Criteria:  Criterion(1:n) 一对多关系 Criteria.add(Criterion); 2)HQL查询           类似于SQL,面向对象(类、属性)   from   select   where   group by   order by   分页查询 page que ...
  session.load():(lazy=true)懒加载原则,用这个对象时才会去抓取记录。否则不会去抓取数据。当查询的对象要使用时,而仅用到ID属性时是不会去抓取数据的,要用到非主键属性值时才会去查询     session.get():hibernate会主动发起抓取数据的动作 查询的时候一般是不启动事务的 串行化时启动事务 sessionfactory是一个重量级的东西 session-factory最好只打开一次,因为: 连一下数据库就要开辟内存,root验证,读取配置文件,耗时 session可以关闭多次 、hibernate的查询方案 利用Session提供的get方法或load ...
1、db browser(show view) 建立myeclipse - > database连接 2、为项目添加hibernate支持 工具会帮你生成:hibernate.cfg.xml 3、逆向工程:ddl->hbm Student Student.hbml.xml hibernate应用ORM 1.配置 hibernate.cfg.xml connection.url(jdbc:mysql://ipaddress:port/db_name) connection.username connection.password dialect(方言):解决标准sql不统一的问题 转 ...
Hibernate关联关系      1)关联关系的概述 A.事物的关联种类 1:n 1:1 m:n B.方向分类 双向 1:n/n:1 1:1 m:n 单向 1:n n:1 1:1 m:n 2)1:1映射方案 A.惟一外键 本身是数据库关于1:1的解决方案 B.共享主键(?) 1.Hibernate的快速上手 1)开发Hibernate应用包括哪些内容 2)开发的步骤 a)持久化类(Pojo) b)关系数据库表 c)持久化类与关系表的映射(O-R Mapping) hibernate.cfg.xml 主要配置一些数据库连接的参数。 xxxx.hbm.xml 主要是配置数据库与实体类之间 ...
request:对客户端请求进行封装的对象 1). RequstDispatcher rd:请求转发器(不会改变原来请求的URL,只能访问容器内资源,能通过同一个请求传递数据) rd.forward:可以转发到静态资源,也可以转发到动态组件(Servlet/jsp) 2)通过request对象可以完成数据的传递(servlet组件) request.setAttribute("",object); object=request.getAttribute(""); 重定向技术:迫使客户端重发请求 (调用外部资源,如跳转到百度) response.sendRe ...
Global site tag (gtag.js) - Google Analytics