Java Programming MCQ (Multiple Choice Questions) - SchoolingAxis

Java Programming MCQ (Multiple Choice Questions)

 Que-  Which of these is a process of extracting/removing the state of an object from a stream?

a. Serialization

b. Externalization

c. File Filtering

d. Deserialization


Answer- Deserialization


Que-  Which of these process occur automatically by java run time system?

a. Serialization

b. Memory allocation

c. Deserialization

d. All of the mentioned


Answer- All of the mentioned


Que-  Which of these interface extends DataInput interface?

a. Serializable

b. Externalization

c. ObjectOutput

d. ObjectInput


Answer- ObjectInput


Que-  Which of these is a method of ObjectInput interface used to deserialize an object from a stream?

a. int read()

b. void close()

c. Object readObject()

d. Object WriteObject()


Answer- Object readObject()


Que-  Which of these class extend InputStream class?

a. ObjectStream

b. ObjectInputStream

c. ObjectOutput

d. ObjectInput


Answer- ObjectInputStream


Que-  Which of these package contains classes and interfaces for networking?

a. java.io

b. java.util

c. java.net

d. java.network


Answer- java.net


Que-  Which of these is a protocol for breaking and sending packets to an address across a network?

a. TCP/IP

b. DNS

c. Socket

d. Proxy Server


Answer- TCP/IP


Que-  How many ports of TCP/IP are reserved for specific protocols?

a.10

b.1024

c.2048

d.512


Answer-1024


Que-  How many bits are in a single IP address?

a.8

b.16

c.32

d.64


Answer-32


Que-  Which of these is a full form of DNS?

a. Data Network Service

b. Data Name Service

c. Domain Network Service

d. Domain Name Service


Answer- Domain Name Service


Que-  Which of these class is used to encapsulate IP address and DNS?

a. DatagramPacket

b. URL

c. InetAddress

d. ContentHandler


Answer- InetAddress


Que-  Which of these interface abstractes the output of messages from httpd?

a. LogMessage

b. LogResponse

c. Httpdserver

d. httpdResponse


Answer- LogMessage


Que-  Which of these class is used to create servers that listen for either local or remote client programs?

a. httpServer

b. ServerSockets

c. MimeHeader

d. HttpResponse


Answer- ServerSockets


Que-  Which of these is a standard for communicating multimedia content over email?

a. http

b. https

c. Mime

d. httpd


Answer- Mime


Que-  Which of these methods is used to make raw MIME formatted string?

a. parse()

b. toString()

c. getString()

d. parseString()


Answer- parse()


Que-  Which of these class is used for operating on request from the client to the server?

a. http

b. httpDecoder

c. httpConnection

d. httpd


Answer- httpd


Que-  Which of these method of MimeHeader is used to return the string equivalent of the values stores on MimeHeader?

a. string()

b. toString()

c. convertString()

d. getString()


Answer- toString()


Que-  Which of these is an instance variable of class httpd?

a. port

b. cache

c. log

d. All of the mentioned


Answer- All of the mentioned


Que-  Which of these methods of httpd class is used to read data from the stream?

a. getDta()

b. GetResponse()

c. getStream()

d. getRawRequest()


Answer- getRawRequest()


Que-  Which of these method of httpd class is used to get report on each hit to HTTP server?

a. log()

b. logEntry()

c. logHttpd()

d. logResponse()


Answer- logEntry()

Previous Post Next Post