中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 编程语言 > 综合其它
Weblogic培训试题
作者:未知 时间:2005-09-13 23:32 出处:Blog.ChinaUnix.net 责编:chinaitpower
              摘要:Weblogic培训试题
一共20道题目。

Question 1.
Which declaration of the main method below would allow a class to be started as a standalone program. Select the one correct answer.
A.  public static int main(char args[])
B.  public static void main(String args[])
C.  public static void MAIN(String args[]
D.  public static void main(String args)
E.  public static void main(char args[])

Question 2.
From a JSP within WebLogic, how do you obtain a reference to a javax.transaction.UserTransaction object?
A.  Instantiate a new UserTransaction object within a scriptlet.
B.  Use the built in transaction object.
C.  JSPs cannot use transactions.
D.  Lookup the UserTransaction object bound in the JNDI tree. 

Question 3.
Which of the following is true with respect to the JTA setRollbackOnly method?
A.  setRollbackOnly does not cause the rollback to commence immediately
B.  setRollbackOnly is valid only if the current thread is the transaction initiator
C.  setRollbackOnly is valid only if the current principal has administrator privileges
D.  setRollbackOnly is valid only if a majority of the transaction participants agree to rollback the transaction

Question 4.
Which declarations of identifiers are legal?
A. $persons
B. TwoUsers
C. *point
D. this
E. _endline

Question 5.
Which of the following fragments might cause errors?
A.  String s = "Gone with the wind";
     String t = " good ";
     String k = s + t;
B.  String s = "Gone with the wind";
     String t;
     t = s[3] + "one";
C.  String s = "Gone with the wind";
     String standard = s.toUpperCase();
D.  String s = "home directory";
     String t = s - "directory".

Question 6.
String s = "hello";
String t = "hello";
char c[] = ;
Which return true?
A. s.equals(t);
B. t.equals(c);
C. s==t;
D. t.equals(new String("hello"));
E. t==C.

Question 7.
Given the following code:
public class Person{
int arr[] = new int[10];
public static void main(String a[]) {
System.out.println(arr[1];)
}
}
Which statement is correct?
A. When compilation some error will occur.
B. It is correct when compilation but will cause error when running.
C. The output is zero.
D. The output is null.

Question 8.
JDBC DataSource is directly mapped to what WLS-managed resource?
A.  A JDBC Driver
B.  A Connection Pool
C.  An XA-compliant Resource Manager
D.  A WLS Principal and Database Connection pair

Question 9.
Which is a difference between an entity bean home interface and a session bean home interface?
A.  They extend (inherit) different interfaces
B.  The session home interface cannot have any finder methods
C.  A session home interface is guaranteed to have only one create method
D.  An entity home interface is guaranteed to have at least one create method

Question 10
If a WebLogic server is booted without designating it as an administrative or managed server, what happens?
A.  It boots as a managed server
B.  It boots as an administrative server
C.  Boot is guaranteed to fail (with a graceful exit)
D.  Server will boot in the same mode as the previous boot

Question 11
Which of the following statements are true?
A. The equals() method determines if reference values refer to the same object.
B. The == operator determines if the contents and type of two separate objects match.
C. The equals() method returns true only when the contents of two objects match.
D. The class File overrides equals() to return true if the contents and type of two separate objects match.

Question 12
In a WAR file, in which folder is weB.xml placed?
A.  WEB-INF
B.  APP-INF
C.  META-INF
D.  WEB-INF\lib
E.  None of these

Question 13
In an application, you want to transfer control to some other resource, which of the following tag will be used:
A.  jsp:callback
B.  jsp:forward
C.  jsp:include
D.  jsp:fallback
E.  jsp:useBean

Question 14
You are using one SLSB to invoke methods in multiple Entity EJBs which implement local interface, which exception will be caught:
A.  javax.ejB.EJBException;
B.  javax.ejB.LocalException;
C.  javax.ejB.LocalBeanException;
D.  javax.rmi.RemoteException;
E.  javax.ejB.RemoteException;

Question 15.
A Logout servlet in a web app, which method can be called in this servlet:
A.  out.clear()
B.  out.flush()
C.  session.clear()
D.  session.flush()
E.  session.invalidate()

Question  16.
A ejb named ejbC and how to call this ejb by ejb env varible.
A.  initCtx.lookup("java:comp/env/ejb/ejbC")
B.  initCtx.lookup("java:comp/ejb/ejbC")
C.  initCtx.lookup("java:comp/ejbC")
D.  initCtx.lookup("java:comp/env/ejbC")

Question 17.
When starting a managed server as a service or daemon, which statement is true?
A.  The managed server must be started by NodeManager
B.  The managed server should check for the availability of an Admin Server
C.  A managed server cannot be started as a service or daemon
D.  The managed server must run as root or Administrator
E.  The managed server should attempt to start NodeManager, if is not running  already

Question 18.
Consider a managed server that has one NIC card and two virtual hosts, foo.com and bar.com, with default Web applications. The managed server listen address is 192.168.1.123 The listen port is 80. Which URL can a client use to access bar.com?
A.  http:// 192.168.1.123
B.  http:// 192.168.1.123:80/bar
C.  http:// bar.com
D.  http:// 192.168.1.123 /bar.com
E.  A and C

Question 19.
One managed server does not seem to be responding. Taking which action does NOT shut it down?
A.  "Graceful shutdown of this server¡­" in the Admin Console
B.  "Force shutdown of this server¡­" in the Admin Console
C.  UNIX kill process
D.  Windows Task Manager
E.  All of these actions shut it down

Question 20.
Which built-in WebLogic administration feature can help detect the presence of memory leaks?
A.  The -DWebLogiC.LeakDetect=true flag
B.  Leak monitoring through NodeManager
C.  Forcing Garbage Collection in the Admin Console
D.  The MemoryMonitor MBean
E.  Memory subsystem messages in the server logs

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有