Advance Java MCQs

Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 14

Sr. No.

(*)
JDBC MCQs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Sr. No. (*)


RMI MCQs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Sr. No. (*)


MULTITHREADING MCQs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Question (*)
DBC MCQs
What are the major components of the JDBC?
Which method from the below is used for DML Operations in jdbc?
Which one method from JDBC API is static and syncronized ?
If we want to load the database driver , which method is used?
Which method is used to execute parameterized query?
Which is not the correct jdbc statement from the below ?
JDBC-ODBC driver is also known as
DriverManager.getConnection("jdbc:odbc:scotttiger"); Identity the DSN name from given state
Which option from the below is the type of ResultSet?
To Store the large volume of data such as text file in the table , we use
Whch option from the below is used to call the stored procedure on the database
ResultSet is
Which method is used to rollback the jdbc transaction
Which symbol is used in prepared statement query as a placeholder
Which symbol is used by jdbc to concatinate the query with the integer data type?

Question (*)
MI MCQs
Which package from below is used in Remote Method Invocation
RMI Server is responsible for
Which exception is thrown by the remote object
Which exception must be handled at the rmi client program
Stud exsits at
Skeleton exists at
Which of the below mentiond methods are the member of RMI class
What are the layers of RMI Architecture
Binding RMI Means
In RMI, the objects are passed by
RMI stands for
RMI Architecture consits of how many layers
In RMI, the distributed object application need to do
Which is an object that acts as a gateway for client
RMI is

Question (*)
MULTITHREADING MCQs
Multithreading means
Which of these are the types of multitasking
What is the data type of Thread Priority in Java
Which option from the below need less resources
What decides Thread Priority
Which option from the below is the constructor of Thread class
Which of the following will ensure the thread will be in running state
Which keyword from the below is used for synchronization
Which of the following method wakes up all the threads
In java multithreading, the thread can be created by using
If we call the mehod start (), which method calls internally?
What is the maximum priority of thread in java
Which statement is correct from the below options about thread
Which method is used to check whether the thread is running or not
Which method we implement for Runnable Interface
Option 1 (*)

DriverManager, Driver, Connection,


Statement, and ResultSet
executeResult()
executeQuery()
registerDriver()
Statement()
QueryStatement()
Type 4 Driver
getConnection
Forward ResultSet
Binary Large Object
Collable statment
Class
RollBack()
?
?
RMI MCQs
Option 1 (*)

java.applet
Creating the instance of remote object
InputOutException
RemoteException
client level
client level
checkIP()
stub and skeleton
Registring the name for remote object
Reference
Random Method Invocation
4
Locate the remote objects
skeleton
one way communication

Option 1 (*)

two processes run simultaneously


Process based
Integer
Process
Process
Thread(int priority)
yield()
synchronize
notifyAll()
extending thread class
run()
11
On calling start() ,new thread gets created
isAlive()
start()
Option 2 (*)

DriverManager, Driver, Connection, and Statement


executeQuery()
executeUpdate()
forName()
preparedStatement()
statement()
Type 3 Driver
jdbc
Scrollable ResultSet
Character Large Object
statment
Interface
rollBack()
#
+
RMI MCQs
Option 2 (*)

java.rmi
expotring the remote object
RemoteAccessException
NotBoundException
server level
server level
addLocation()
Remote Reference
Registring the class for remote object
Value and Reference
Remote Memory Interface
3
Comunicate with the remote objects
stud
two way communication

Option 2 (*)

two or more parts of the same process run simultaneously


Thread Based
Float
Thread and Process Both
Process Schedular
Thread(Runnable a, String str)
notify()
synchronized
wakeAll()
implementing applet
wait()
10
On calls of start () method, run () mehods calls internally.
wait()
execute()
Option 3

DriverManager, Statement, and ResultSet


execute()
getConnection()
getConnection()
Collable statement
preparedStatement()
Type 2 Driver
odbc
Both 1 and 2
Both 1 and 2
preparedStatement()
Object
rollback()
&&
,

Option 3

java.lang.*
binding the instance of the remote object
RemoteInputOutputException
MalFormedURLException
both 1 and 2
both 1 and 2
addServer()
Transport
both 1 and 2
Value
Remote Method Invocation
2
Load the class defenition
both 1 and 2
both 1 and 2

Option 3

different process can access the same information


Process and Thread based
Double
Neither Thread nor Process
Thread
Thread(Runnable a, int priority)
wait()
syn
notify()
using both 1 and 2
sleep()
5
both 1 and 2 options are correct
sleep()
run()
Option 4

DriverManager, Connection, Statement, and ResultSet


executeUpdate()
prepareCall()
Both 1 and 2
All of the above
Collable Statement()
Type 1 Driver
scotttiger
None of the above
None of the above
None of the above
All of the above
ROLLBACK()
None of the above
None of the above

Option 4

java.lang.reflect
All of the above
RemoteException
All of the above
None of the above
None of the above
None of the above
All of the above
None of the above
None of the above
All of the above
1
All of the above
None of the above
None of the above

Option 4

single process can access the resources from many sources


None of the above
String
Thread
Thread Schedular
Thread(Runnable a, ThreadGroup t)
Thread.killThread()
synch
start()
None of the above
None of the above
8
None of the above
All of the above
sleep()
Correct answer(1,2,3,4)

1
4
3
4
2
1
4
4
3
2
1
2
3
1
2

Correct answer(1,2,3,4)

2
3
4
4
1
2
4
4
1
3
3
1
4
2
3

Correct answer(1,2,3,4)

2
3
1
4
4
2
3
2
1
3
1
2
3
1
3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy