Professional Documents
Culture Documents
Question Choice A
How many native threads are possible in SWT? 1
It runs on any
platform that
SWT is platform-independent? support Java
You have to design a layout where the component are to be placed in
rows and columns, having varied spaces between them? BorderLayout
Java Foundation classes conatin the follwing awt, swing,2d
which method is applicable for swing text field focuslost
How Shell make itself visible shell.open ();
Which is not an abstract class in swt
what is the root of the widget class shell
shell.setSize(200,
How you set the size of the shell 100);
which is not a basic widget
DefaultDesktopManager class implements concrete methods of
DesktopManager TRUE
Swing and Jtable are two dimensional
Does SWT supports Java Bean? Yes
It depends on It platform
native library independent None of the above
FALSE
three dimensional
No
None of the
Shell Display Above.
pack modify close
Table Tree Combo
Factory Façade
Question Choice A
HeuristicMixedException, HeuristicCommitException and
HeuristicRollbackException
JTS interface is defined in JTA
Java Transaction
Full form of JTS Service
IIOP(Internet inter
Which protocol is used to generate and propagate transaction context ORB protocol)
Connection
Which one is best mechanism for database connections Mechanism
Answer
CORBA OTS
TransactionManag
javax.transaction. er.UserTransactio
UserTransaction n None of the Above
Transaction
Manager Both a & b None of the Above
RMI
Transaction Object-Relational
Manager Mapping None of the Above
Reasons
What is Aspect?
Which interface is used to pluggin the Web module
Question on Joint Point
Answer
DelegatingVariab
Resolver DelegateResolver leResolver
MBeansExporter
<bean id="MyDataSource"
class="org.apache.commons.dbcp.BasicDataSour
ce" destroy-method="close">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property> <property name="url">
<value>jdbc:mysql://127.0.0.1:3306/DEVCENTRY?
useUnicode=true&characterEncoding=gb231
2</value>
</property> <property name="username">
<value>lyo</value> </property>
<property name="password">
<value>lyo</value>
</property> <property
name="defaultAutoCommit">
<value>true</value> </property> </bean>
5(no,byName,byType,
6 constructor, autodetect) 4
7
Answer
Question Choice A
mapping between
a java class and a
Hibernate does what? table
Which one is autometically generated by Hibernate? Primary key
How to differentiate <> used in query or XML in hibernate.xml CDATA
Answer
Full cream
architectute MVC Both a md b
FALSE
mapping betweena
action from and mapping between
table a XML and table None
Foreign Key Candidate Key A & B both
Answer
Question Choice A
State Chart
What UML diagram represents the different stages in Object life cycle? Diagram
State Chart
What UML diagram represents the interactions between the objects? Diagram
Collaboration Sequence
Object diagram diagram Diagram
Collaboration Component State Chart
diagram diagram Diagram
Question Choice A
What type of object is not available in JSP? Session
ServletContext.get response.getRem
RemoteAddr oteAddr
Question Choice A
Expression Language can be used in JSF? TRUE
How to specify include tag in JSF? <h:include>
<h:commandLink
How to specify achor tag in JSF? >
xml file name used in JSF faces-config.xml
Questions on feedback reader and backing bean
Extension on JSF .jsp
To show a outpot string which tag is used h:DisplaText
Answer
Question Choice A
In iBatis sql statement use which descriptor?
how many framework Ibatis support 2
DAOManagerbuil
DAO DAOBuilder der
Maximum number
of threads that
can enter
SqlMapClient.start Max no of
Transaction() at a connection in
time. SQLMAPClient option 4
Question Choice A
Can Multiple thread be created in AJAX pooling? TRUE
In AJAX Various IO pipelines. From cookies to IFrames, to pub/sub
functionality dojo.Stream
Question on AJAX submission Throttling
Which patern guess what the user is going to do? Predictive Fetch
How to convert an XML to a java object and the reverse? JAXP
JavaScript + DOM
DHTM consist of? + CSS
Java Script is hard
What of AJAX? to main tain
How programmable layout in webpage is achieved? Iframe
Answer
dojo.io dojo.Math
Submission
Throttling Periodic Refresh None of the above
JAXB JAXM None
JavaScript + DOM JavaScript + CSS
+ XML + XML None
DHTML
Browsers don't allow scripts to multithread, and nor does Javascript have any built-in support for it. does no
Answer
Question Choice A
Remote object can be created from which of the following>? Interface
What is the function of rmi registry ?
Multi cast delivery is supported in remote reference layer or not TRUE
Client connect first to rmi registry
extending
UnicastRemoteObj
Callbacking in RMI is done by ect
stub can only access the methods which are defined in Remote. TRUE
FALSE
rmi service
Call
UnicastRemoteObj
ect.exportObject(thi
s) both a & b None
FALSE
Question Choice A
To keep unrelated
action into a related
What is the role of dispatchAction? model
Later version of ActionError? No version
What is the return parameter in ExceptionHandler.execute() method ActionForward
which of the following is the tld used in struts struts.tld
<%@........%> tag is called when in jsp? Compile time
<%@ taglib
prefix="sql"
uri="http://java.su
How to used taglib in struts? n.com/jstl/sql" %>
Answer
Question Choice A
Which one is invalid clause in EJB? Select
Writing New
Role of Application Assembler? components
Which of the following is asynchronous entity bean
EJB present in Web Container TRUE
Entity Bean suppotrs only CMP TRUE
Entyty Bean should have Persistence
Argument and
What is different create and ejbCreate in EJB? Return Type
ActionError is used in Struts1.1. In Struts 1.2 this method has been
depricated.What is introduced to overcome this? AcionMessage
How to prevent duplicate page submission in Struts?(interface name)
Which saves data temporalily before saving to the database Action Servlet
Question Choice A
A pettern that is pluggable, can be attached without affecting the rest
system, can be authorized and authenticated Business Delegate
What belong to Structured pattern Façade
Proxy Pattern
Design Pattern uses
Prototype pattern examples Serializtion
Which of the following is not a composite entity pattern Transfer object assembler
Question on DAO Pattern
Which of the following is not a creational pattern singleton pattern
which of the following is not a "GOF pattern" front controller
Questin on Builder Pattern?
Whicn pattern is used to build an object which take only the specification
Question on Structural pattern
Overloading is? Encapsulation
lock and attach a
Seamaphore does what? count to obj
Creational,Structur
Mejor classification in Design Pattern? al,Behavioral
Answer
Cloneable
er object assembler
Creational,Observe Observer,Proxy,B
r,Behavioral ehavioral None
Answer
Question Choice A
Which of the following is Transaction Control statement : grant
What is a real life database object ?
The driver which converts jdbc calls to network protocol type 1
DDL Statements Create, alter, drop
Which one is equi join? Eslf
<> means what? greter than
Answer
Question Choice A
It is a lock with
What is the function of Semaphore? attached counter
Function of Barrier
Function of CountDownlatch
How to avoid thread interference and memory inconsistency Synchronization
What CountDownLatch does?
Which method is used to sinchronize a method? sinchronizer
Answer
Question Choice A
javax.xml.messag
JAXM package is ing
Which provides the mapping between the Java object and XML files JAXM
What exception is thrown if an already bounded object is again tried to AlreadyBoundedEx
get bounded? ception
SOAP header is optional? TRUE
Language
Jruby supports what? internationalization
What is optional in SOAP declaration? header
Is it possible to achieve overloading by changing order of argument TRUE
Answer
Websphere
Apache
Association Composition
FALSE
FALSE