Java MCQs with answers Page - 35

Here, you will find a collection of MCQ questions on Java. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. 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

A

Admin • 833.24K Points
Coach

Q. 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

A

Admin • 833.24K Points
Coach

Q. 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

A

Admin • 833.24K Points
Coach

Q. 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

A

Admin • 833.24K Points
Coach

Q. 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

A

Admin • 833.24K Points
Coach

Q. Which is built on the top of socket programming?

  • (A) EJB
  • (B) RMI
  • (C) Both A & B
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. 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

A

Admin • 833.24K Points
Coach

Q. 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

A

Admin • 833.24K Points
Coach

Q. In a RMI Client Program, what are the exceptions which might have to handled?

  • (A) RemoteException
  • (B) NotBoundException
  • (C) MalFormedURLException
  • (D) All mentioned above

A

Admin • 833.24K Points
Coach

Q. Abbreviate the term DGC?

  • (A) Digital Garbage Collection
  • (B) Distributed Garbage Collection
  • (C) Distributed Garbage Connection
  • (D) None of the above

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ