PART-1 PART-2 PART-3
1. The _________ class creates and maintains a buffer for an input stream
Common BufferedInputStream
BufferedStream
InputStream
BufferedInputStream
2.A __________ is a sequence of bytes traveling from a source to a destination over a
communication path.
string
stream
character
integer
3. Which of the following statement is the explanation of the int read () method
Reads a byte of data from the input stream
Reads bytes of data from the input stream and stores them in the array
Reads the number of bytes specified by the third argument from the input stream and
stores.
Returns the number of bytes available for reading from the input stream
4. Which of the following assignments is illegal in Java?
subclass_reference = subclass_object
subclass_reference = superclass_object
superclass_reference = subclass_object
superclass_reference = superclass_object
5. A ___________ is java program that can be embedded in a Web page
Applets
Browser
Package
None of these
6. A applet tag is written in body tag of ___________
HTMM
HTTP
HTML
Applet
7. All applets must be declared as
Protected
Public
Private
Static
8.________ method is called the first time an applet is loaded into the memory
of a computer
init method()
start method()
stop method()
destroy method()
9. Which of the following is a loop construct that will always be executed once?
switch
for
while
do …. While
10. _______ provides a database-programming interface for Java programs
ODBC
JDBC
DBMS
DAT
11. Which of the following is NOT a part of JDBC URL?
<protocol>
<subprotocol>
<subname>
<name>
12. _________package Contains classes that help in connecting to a database
sql.java
mysql.java
java.sql
java.mysql
13. RMI stands for
Remote Method Invocation
Remote method invention
Remote Memory Interface
Reduced Method Instructions
14. CORBA stands for
Common Operation Request Broker Architecture
Common Object Request Bean Architecture
Common Object Request Broker Architecture
Component Object Request Broker Architecture
15. Which of the following statements holds good for JavaBeans?
JavaBeans allows to efficiently constructing applications by Configuring and Connecting Components called Beans.
Java beans are used to transfer data in distributed Systems.
Java Bean is software component architecture of Java designed to use only in one Particular environment
None of the above.
16.Which of the following is not a wrapper class?
Vector
Character
Boolean
Integer
17. Servlets provide an efficient replacement for _______ scripts
CGI
GCI
API
PIC
18.____________ contains the class libraries that which are needed to create servlets
SDK
JSDK
JDK
JAR
19. Choose the CORRECT statement.
To write JSP code you require a browser.
To test the JSPs you need a server engine.
JSPs looks like HTML script
JSP combines HTML and JDK tools
20. Choose the WRONG Statement
Java is inherently suited for large client/server applications.
A servlet is a small pluggable extension to a server that enhances the server’s functionality
Java does not support networking.
When you use servlet to create dynamic content for a web page or otherwise extend the functionality of a web server.