Explore topic-wise MCQs in Technical MCQs.

This section includes 69 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

51.

JsonReader and JsonWriter read/write the data as token, referred as?

A. Token
B. JsonToken
C. GsonToken
D. Jtoken
Answer» C. GsonToken
52.

Tree Model prepares an in-memory tree representation of the JSON document.

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» B. No
53.

Converts JSON to and from Java Maps, Lists, Strings, Numbers, Booleans, and NULL objects known as ?

A. Objects Data Binding
B. Data Binding
C. Primitives Data Binding
D. None of the above
Answer» D. None of the above
54.

How many types of Data Binding API ?

A. 1
B. 2
C. 3
D. 4
Answer» C. 3
55.

Which is used to constructs a Gson object with default configuration?

A. Ggson()
B. JGSON()
C. Gson()
D. Json()
Answer» D. Json()
56.

Which of the following prepares an in-memory tree representation of the JSON document?

A. Streaming API
B. Tree Model
C. Data Binding
D. All of the above
Answer» C. Data Binding
57.

Which of the following are features of gson?

A. Gson API provides a high-level facade to simplify commonly used use-cases
B. Gson API provides default mapping for most of the objects to be serialized
C. Gson creates a clean and compact JSON result which is easy to read
D. All of the above
Answer» E.
58.

Google Gson provides extensive support for generics?

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» B. No
59.

Google Gson is an?

A. Open source
B. Java-based library
C. Reliable and fast
D. All of the above
Answer» E.
60.

Throwables class provides utility methods related to Throwable interface.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
E.
Answer» B. FALSE
61.

Objects class provides helper functions applicable to all objects such as equals, hashCode, etc.

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» B. No
62.

Which of the following returns true if this range has a lower endpoint?

A. hashCode
B. hasLowerBound
C. hasUpperBound
D. hasBound
Answer» C. hasUpperBound
63.

Range represents?

A. interval
B. sequence
C. random
D. Both A and B
Answer» E.
64.

abstract int compare(T left, T right) is used to?

A. Searches sortedList for key
B. Returns an arbitrary ordering
C. Compares its two arguments for order.
D. Returns an ordering which first uses the ordering
Answer» D. Returns an ordering which first uses the ordering
65.

Which method Ensures that index specifies a valid position in an array, list or a string of size?

A. static int checkPositionIndex(int index, int size, String desc)
B. static int checkPositionIndex(int index, int size)
C. static void checkPositionIndexes(int start, int end, int size)
D. static void checkState(boolean expression)
Answer» C. static void checkPositionIndexes(int start, int end, int size)
66.

Which of the following returns an Optional instance with no contained reference?

A. abstract <T> Optional<T> absent()
B. boolean <T> Optional<T> absent()
C. static <T> Optional<T> absent()
D. abstract T get()
Answer» D. abstract T get()
67.

Guava provides many utility classes which are regularly required in programming application development?

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» B. No
68.

Guava is?

A. open source
B. java-based library
C. reliable and fast
D. All of the above
Answer» E.
69.

Guava developed by?

A. Facebook
B. Google
C. IBM
D. Microsoft
Answer» C. IBM