1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
densk [106]
3 years ago
15

What output is produced by the following code? Integer first = new Integer(7); Integer second = first; if (first == second) Syst

em.out.println("Sneezy"); else System.out.println("Grumpy"); if (first.equals(second)) System.out.println("Sleepy"); else System.out.println("Doc"); Sneezy Sleepy Sneezy Doc Grumpy Sleepy Grumpy Doc
Computers and Technology
1 answer:
fenix001 [56]3 years ago
6 0

Answer:

The correct output of this question is  "Sneezy Sleepy".

Explanation:

In the given code firstly we create the object of the integer class that is first in this we pass the integer value that is 7. Then we declare another second integer variable is this variable we pass object as a reference. Then we use the two conditional statements. In the first, if block we check that the object of the class is equal to the reference variable. If it is true it prints Sneezy. otherwise, it will print Grumpy. In second if block we check that the object of the class is equal to the reference variable. but in this time we the equals() function it is the same as(==). If the condition is true it prints Sleepy. otherwise, it will print Doc. So the output of the code is Sneezy Sleepy.

You might be interested in
Please select the word from the list that best fits the definition
svp [43]

Answer:

absolute

Explanation:

never implies well... never which is pretty darn absolute

6 0
3 years ago
Read 2 more answers
_____ is a subset of a data warehouse in which only a focused portion of the data warehouse information is kept. A. Data diction
OLEGan [10]

Answer:

Option D (data mart) would be the right choice.

Explanation:

  • A pattern was used to acquire customer information in the data warehouse level or environment is known as a data mart.
  • It is indeed a framework unique to the knowledge warehouse being used by the team having the business sphere. Per corporation has a particular data mart stored throughout the archive of the database system.

The other options offered are not relevant to the example mentioned. So, the solution above is the right one.

4 0
3 years ago
A _____ captures the pattern in a _____ and sends it to the computer, where special software translates the _____ into meaningfu
g100num [7]

Answer:

A bar code reader scanner captures the pattern in a barcode and sends it to the computer, where special software translates the pattern into meaningful data.

Explanation:

A barcode reader is a handheld device that captures and reads information that is contained in a bar code. It consists of a scanner, a decoder and a cable that connects the barcode reader into a computer. This scanner works by directing a beam or red light across the black and white elements of a barcode. This amount of light energy that is reflected back is measured and converted into electrical energy which is then converted into readable data by the decoder and forwarded to a computer.

4 0
3 years ago
Meera has created a small program in Python. She wants to store elements of the same data type in an organized
blondinia [14]

Answer:

NumPy contains a large number of various mathematical operations.

...

Numpy | Mathematical Function.

Function Description

expm1() Calculate exp(x) – 1 for all elements in the array.

exp2() Calculate 2**p for all p in the input array.

log10() Return the base 10 logarithm of the input array, element-wise.

log2() Base-2 logarithm of x.

4 0
3 years ago
Ramjac Company wants to set up k independent file servers, each capable of running the company's intranet. Each server has avera
Luda [366]

Answer:

k = 3

Explanation:

K independent file servers

Average "uptime" of each server = 98%

<u>To achieve 99.99% probability by the intranet </u>

given that each server has an uptime = 98%

For the intranet to achieve 99.99% probability we have to choose more than 2 servers ( i.e. 3 servers )  incase any of the server goes down.

As each server posses an uptime of 98% it is almost impossible for all 3 servers to go down at the same time hence value of K = 3

3 0
2 years ago
Other questions:
  • What is the use of pecil icon
    11·2 answers
  • Often used in connection with a business
    6·1 answer
  • Can multiple processors can be installed in a single processor housing?
    14·2 answers
  • Please help me answer this question
    14·1 answer
  • Is this a Bad Cpu processor ? I need some.help ASAP I turn on my.pc and it has no display but everything is on fans and the you
    13·1 answer
  • What does the CPU do in a computer?
    7·2 answers
  • Project: Math Tutor Program with Error Handling
    9·2 answers
  • Political parties to address the interest of civil society<br>​
    7·1 answer
  • Where would you go to access frequently used icons?
    12·2 answers
  • Which of the following is true about stateless applications?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!