Create Quiz

Guava Java technologies Quiz

Guava Java technologies Quiz

Guava Library in Java. Google Guava is an open-source(a decentralized software-development model that encourages open collaboration) set of common libraries for Java, mainly developed by Google engineers. It helps in reducing coding errors.

You can mute/unmute sounds from here

You May Get Result Of Guava Java technologies Quiz

The Result is here. Your score is less than 25% of right answer.
The Result is here. Your score is between 25-50% of right answer.
The Result is here. Your score is between 51-75% of right answer.
The Result is here. Your score is more than 75% of right answer.
POST YOUR ANSWER (READ ANSWERS)

Quiz Questions And Answers

Consider the following: String message = “Hello”; message = message + “World”; What does the second statement do?

It adds the characters World to the string object nachrichtreferenced by.
It creates a new string object from the original object nachrichtreferenced by, and from another string object containin
It changes the unchangeable object that is nachrichtreferenced by.

Which operation is most often performed by programs?

Addition of the integer one to an integer variable.
Floating point division.
Construction of an object.

What two steps are performed when an assignment operation is performed?

The result of the evaluation is assigned to the variable on the left side of the “=”.
The result is assigned to the variable on the left side of the “=”.
All suitable variables are incremented.

What does variable ++ mean?

Add a one to the variable.
Add a one to the variable after its current value is used.
Add a one to the variable before using its current value.

What will the following program display on the screen: int number = 0; int counter = 1; number = count ++; System.out.println (“number:” + number “+ count:” + count);

number: 0 counter: 1
number: 1 count: 1
number: 1 counter: 2

What will the following program output to the screen: int number = 0; int counter = 1; number = ++ counter; / * Note the difference to the previous program * / System.out.printl

number: 2 counter: 2
number: 0 counter: 1
number: 1 count: 1

What is the output of the following: int a = 0; int b = 10; a = –b; System.out.println (“a:” + a + “b:” + b);

a: 10b: 9
a: 9b: 9
a: 0b: 9

What is the output of the following program: double w = 12.5; w * = 2; System.out.println (“w is” + w);

w is 25.0
w is 12.5
w is 13.5

What type of inheritance does Java have?

single inheritance
double inheritance
Multiple Inheritance

Assume that there is three classes Computer, AppleComputerand IBMComputer. What does the relationship between these classes look like?

IBMComputeris the superclass, AppleComputerand Computerare subclasses of IBMComputer.
Computeris the superclass, AppleComputerand IBMComputerare subclasses of Computer.
Computer, AppleComputerand IBMComputerare sibling classes.

Can an object be the subclass of another object?

Yes – as long as the single inheritance is observed.
No – inheritance exists only between classes.
Only if one is defined in the other’s terms.

How many objects of a given class can be in a program?

One per defined class.
One per constructor definition.
As many as the program needs.

What restriction is there when using the keyword superin a constructor?

It can only be used in the constructor of the superclass.
It can only be used by one subclass.
It must be used as the first statement of the constructor.

A new class GingerAleshould be derived based on the superclass SoftDrink. Which of the following statements is syntactically correct?

class GingerAle isa SoftDrink { //more definitions come here }
class GingerAle implements SoftDrink { //more definitions come here }
class GingerAle extends SoftDrink { //more definitions come here }

What is an abstract class?

An abstract class is a class without subclasses.
An abstract class is any superclass with more than one subclass.
An abstract class is a class that can not be instantiated.
ANSWERS

Currently, we have no comments. Be first to comment on this quiz.

Guava Java technologies Quiz : Test Trivia

Ultimate impossible accurate personality honest Quiz Game

How do you rate this quiz?

Average rating 4.8 / 5. Vote: 5
Embed This Quiz
Copy the code below to embed this quiz