Deck 13: Java Programming: GUI, RMI, Polymorphism, and String Handling

Full screen (f)
exit full mode
Question
The following specifies the advantages of It is lightweight. It supports pluggable look and feel. It follows MVC (Model View Controller) architecture.

A)Swing
B)AWT
C)Both A & B
D)None of the above
Use Space or
up arrow
down arrow
to flip the card.
Question
Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?

A)True
B)False
C)none
D)all
Question
These two ways are used to create a Frame By creating the object of Frame class (association) By extending Frame class (inheritance)

A)True
B)False
C)none
D)all
Question
Which package provides many event classes and Listener interfaces for event handling?

A)java.awt
B)java.awt.Graphics
C)java.awt.event
D)None of the above
Question
The ActionListener interface is used for handling action events,For example,it's used by a

A)JButton
B)JCheckbox
C)JMenuItem
D)All of these
Question
Which is the container that doesn't contain title bar and MenuBars. It can have other components like button, textfield etc?

A)Window
B)Frame
C)Panel
D)Container
Question
Which of these package is used for all the text related modifications?

A)java.text
B)java.awt
C)java.lang.text
D)java.text.mofify
Question
RMI has which of these protocols implementations?

A)Java Remote Method Protocol (JRMP)
B)Internet Inter-ORB Protocol (IIOP)
C)Jinni Extensible Remote Invocation (JERI)
D)All mentioned above
Question
In RMI which layer defines and supports the invocation semantics of the RMI connection, this layer maintains the session during the method call?

A)The Stub & Skeleton Layer
B)The Application Layer
C)The Remote Reference Layer
D)The Transport Layer
Question
Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?

A)rebind ()
B)lookup()
C)Both A & B
D)None of the above
Question
In RMI program the following two steps are used to, Either extend the UnicastRemoteObject class, the exportObject() method of the UnicastRemoteObject class,

A)Provide the Implementation of the remote interface
B)Create the remote interface
C)Create and start the remote application
D)Compile the implementation class and create the stub and skeleton objects using the rmic tool
Question
Which is built on the top of socket programming?

A)EJB
B)RMI
C)Both A & B
D)None of the above
Question
In RMI program the following example shows the,
Import java.rmi.*;
Public interface Adder extends Remote
{
Public int add(int x,int y)throws RemoteException;
}

A)Create and start the remote application
B)Create and start the client application
C)Create the remote interface
D)Provide the implementation of the remote interface
Question
In RMI applications which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them?

A)Server
B)Client
C)Both A & B
D)None of the above
Question
Which is a one-way communication only between the client and the server and it is not a reliable and there is no confirmation regarding reaching the message to the destination?

A)TCP/IP
B)UDP
C)Both A & B
D)None of the above
Question
In a RMI Client Program, what are the exceptions which might have to handled?

A)RemoteException
B)NotBoundException
C)MalFormedURLException
D)All mentioned above
Question
Abbreviate the term DGC?

A)Digital Garbage Collection
B)Distributed Garbage Collection
C)Distributed Garbage Connection
D)None of the above
Question
Which of the following is a type of polymorphism in Java?

A)Compile time polymorphism
B)Execution time polymorphism
C)Multiple polymorphism
D)Multilevel polymorphism
Question
When does method overloading is determined?

A)At run time
B)At compile time
C)At coding time
D)At execution time
Question
Which concept of Java is a way of converting real world objects in terms of class?

A)Polymorphism
B)Encapsulation
C)Abstraction
D)Inheritance
Question
Which component is responsible to optimize bytecode to machine code?

A)JVM
B)JDK
C)JIT
D)JRE
Question
How can we identify whether a compilation unit is class or interface from a .class file?

A)Java source file header
B)Extension of compilation unit
C)We cannot differentiate between class and interface
D)The class or interface name should be postfixed with unit type
Question
Which of these packages contains abstract keyword?

A)java.lang
B)java.util
C)java.io
D)java.system
Question
Which of these class is used to create an object whose character sequence is mutable?

A)String()
B)StringBuffer()
C)String() & StringBuffer()
D)None of the mentioned
Question
Which of these method of class StringBuffer is used to find the length of current character sequence?

A)length()
B)Length()
C)capacity()
D)Capacity()
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 13: Java Programming: GUI, RMI, Polymorphism, and String Handling
1
The following specifies the advantages of It is lightweight. It supports pluggable look and feel. It follows MVC (Model View Controller) architecture.

A)Swing
B)AWT
C)Both A & B
D)None of the above
Swing
2
Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?

A)True
B)False
C)none
D)all
False
3
These two ways are used to create a Frame By creating the object of Frame class (association) By extending Frame class (inheritance)

A)True
B)False
C)none
D)all
False
4
Which package provides many event classes and Listener interfaces for event handling?

A)java.awt
B)java.awt.Graphics
C)java.awt.event
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The ActionListener interface is used for handling action events,For example,it's used by a

A)JButton
B)JCheckbox
C)JMenuItem
D)All of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
Which is the container that doesn't contain title bar and MenuBars. It can have other components like button, textfield etc?

A)Window
B)Frame
C)Panel
D)Container
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Which of these package is used for all the text related modifications?

A)java.text
B)java.awt
C)java.lang.text
D)java.text.mofify
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
RMI has which of these protocols implementations?

A)Java Remote Method Protocol (JRMP)
B)Internet Inter-ORB Protocol (IIOP)
C)Jinni Extensible Remote Invocation (JERI)
D)All mentioned above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
In RMI which layer defines and supports the invocation semantics of the RMI connection, this layer maintains the session during the method call?

A)The Stub & Skeleton Layer
B)The Application Layer
C)The Remote Reference Layer
D)The Transport Layer
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?

A)rebind ()
B)lookup()
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
In RMI program the following two steps are used to, Either extend the UnicastRemoteObject class, the exportObject() method of the UnicastRemoteObject class,

A)Provide the Implementation of the remote interface
B)Create the remote interface
C)Create and start the remote application
D)Compile the implementation class and create the stub and skeleton objects using the rmic tool
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Which is built on the top of socket programming?

A)EJB
B)RMI
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
In RMI program the following example shows the,
Import java.rmi.*;
Public interface Adder extends Remote
{
Public int add(int x,int y)throws RemoteException;
}

A)Create and start the remote application
B)Create and start the client application
C)Create the remote interface
D)Provide the implementation of the remote interface
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
In RMI applications which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them?

A)Server
B)Client
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which is a one-way communication only between the client and the server and it is not a reliable and there is no confirmation regarding reaching the message to the destination?

A)TCP/IP
B)UDP
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
In a RMI Client Program, what are the exceptions which might have to handled?

A)RemoteException
B)NotBoundException
C)MalFormedURLException
D)All mentioned above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Abbreviate the term DGC?

A)Digital Garbage Collection
B)Distributed Garbage Collection
C)Distributed Garbage Connection
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is a type of polymorphism in Java?

A)Compile time polymorphism
B)Execution time polymorphism
C)Multiple polymorphism
D)Multilevel polymorphism
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
When does method overloading is determined?

A)At run time
B)At compile time
C)At coding time
D)At execution time
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Which concept of Java is a way of converting real world objects in terms of class?

A)Polymorphism
B)Encapsulation
C)Abstraction
D)Inheritance
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Which component is responsible to optimize bytecode to machine code?

A)JVM
B)JDK
C)JIT
D)JRE
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
How can we identify whether a compilation unit is class or interface from a .class file?

A)Java source file header
B)Extension of compilation unit
C)We cannot differentiate between class and interface
D)The class or interface name should be postfixed with unit type
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Which of these packages contains abstract keyword?

A)java.lang
B)java.util
C)java.io
D)java.system
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Which of these class is used to create an object whose character sequence is mutable?

A)String()
B)StringBuffer()
C)String() & StringBuffer()
D)None of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Which of these method of class StringBuffer is used to find the length of current character sequence?

A)length()
B)Length()
C)capacity()
D)Capacity()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.