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]
2 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]2 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
Which of the following formats allow visual, video, and sound capability and can be uploaded to certain social networking sites?
insens350 [35]
It is Microsoft work
This is because
6 0
3 years ago
3. Write a script that uses an anonymous block of PL/SQL code that attempts to insert a new flight into the flights table for fl
Irina18 [472]

Answer:

We will use script in oracle and SQl(Structured Query Language) and use of algorithms like cipher for encryption to insert a new flight into the flights table for the flight number 165 and that Cipher will show the desired message.

5 0
3 years ago
Zahra's softball team needs money for team T-shirts. The coach makes some fundraising suggestions, while team members brainstorm
user100 [1]

Answer:

I would think it would be D

Explanation:

that's basically what it said in the passage

5 0
3 years ago
Read 2 more answers
Tools such as microsoft's word, excel, and powerpoint are examples of ________ software. question content area bottom part 1 a.
Leona [35]

Tools such as microsoft's word, excel, and PowerPoint are examples of Application software.

<h3>What is Application Software?</h3>

Application software exists as an end-user program typically separated into two classes: application software and systems software. Systems software delivers an operating system and utilities that allow applications software such as database programs, spreadsheets, web browsers, and more to run.

The most common examples of application software stand the computer programs that we utilized in our everyday life. This application software includes Microsoft products such as Office, PowerPoint, Word, Excel, Outlook, etc. Music Application Software like Pandora and Spotify.

Types of Application Software

  • Web browsers.
  • Presentation software.
  • Spreadsheet software.
  • Graphic software.
  • Word processors.
  • Database software.
  • Multimedia software.
  • Education software.

Hence, Option e Application Software is correct.

To learn more about Application Software refer to:

brainly.com/question/25704037

#SPJ4

3 0
1 year ago
Assessing opportunity cost involves...
vova2212 [387]

Answer:

Assessing opportunity cost involves <u>making choices and dealing with consequences.</u>

Explanation:

Opportunity cost means that, the cost to gain something with some consequences. If there are multiple opportunities in front of you and you have to analyze or assess each opportunity. In this assessment you have to assess the consequences of all choices or opportunities. After assessing all the opportunities you will select the opportunity in which you have more gain and less consequences.

So we can say that, while assessing different opportunities, we have to make choices and dealing with consequences.

6 0
3 years ago
Other questions:
  • // In this exercise, you will be given a variable, it will be called: value
    7·1 answer
  • ​according to your text, digital natives tend to prefer different digital communication channels more than do digital immigrants
    5·1 answer
  • I need help with the stalk holders project
    9·1 answer
  • the easiest and cheapest time to alter the information system is in the ________ phase of the sdlc. a. requirements analysis b.
    8·1 answer
  • Creating a call conversion in Google Ads and adding a phone snippet to a web page allows advertisers to use a Google forwarding
    11·1 answer
  • WILL MARK BRAINLIEST.....
    11·1 answer
  • What is an example of a reputable website
    15·2 answers
  • Complete the method, print Multiples(), that takes in a positive integer n, and another positive integer, max. Print out all the
    15·1 answer
  • If we want to access files located in a directory on a remote server, which of these options would we use?
    9·2 answers
  • I don’t understand this, i need help
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!