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
Pepsi [2]
4 years ago
8

Recall that the Counter class initializes itself to 0 and allows a client to increment it, and the Increase class is initialized

with a Counter c and an int amount and when run, invokes increment on the Counter object c amount times. Identify the possible output of the following code sequence: Counter c = new Counter(); Runnable r = new Increase(c, 2); Thread t = new Thread(r); c.increment(); t.start(); System.out.println(c);
Computers and Technology
1 answer:
artcher [175]4 years ago
4 0

Answer:

Output can be 0 or 1 or 2.

Explanation:

As we are initializing the value with 2 so at most it will increment to 2 times means value will be 2.

when main thread is printing the c , Increase thread might be started or might not be started

so output can be 0 or 1 or 2

You might be interested in
This isn't academic, but what do I do if HI-REZ won't let me sign into an existing account. “Something went wrong” keeps popping
NNADVOKAT [17]

Answer:

contact their support

Explanation:

6 0
3 years ago
How does the technology work
Ivan

Answer:  it does – or perhaps appears to do – in the world.

Explanation:

sorry if am not right have a nice day lol

6 0
3 years ago
Read 2 more answers
Similarities of ROM and RAM?​
lesantik [10]

Explanation:

both are primary storage devices

4 0
3 years ago
The emergence of MP3 (iPod) technology is an example of creative destruction because a. It is less expensive than compact discs
Katen [24]

Answer:

The emergence of MP3 (iPod) technology is an example of creative destruction because it has b. Replaced compact discs as a technology used for the storage and transfer of music.

Explanation:

Creative destruction refers to the process whereby a new technology/product replaces the one before it. The MP3 technology replaced compact discs because people started using MP3 files to transfer and store music since it was less expensive and files could be transferred easily. MP3 files could be transferred over Bluetooth and they required less storage space. Whereas, a compact disc required more space and costed more as well. So, MP3 technology replaced compact discs.

The emergence of MP3 (iPod) technology is an example of creative destruction because it has b. Replaced compact discs as a technology used for the storage and transfer of music.

8 0
3 years ago
Attention merchants define
Marina CMI [18]

Answer:

A merchant is a person who buys or sells goods in large quantities, especially one who imports and exports them.

4 0
3 years ago
Other questions:
  • Which method is the best way to keep from running late on the day of a test
    10·1 answer
  • Define application pakage​
    5·2 answers
  • Need answer Quick!!!!!
    10·1 answer
  • Everytime my daughter tries to ask for an app, or a money thing inside an app.. The request won't go through. Anybody know how t
    12·1 answer
  • A program that doesn’t work properly needs to be debugged. true or false
    8·1 answer
  • Using only AND, OR and inverter gates to implement the above Boolean equation, how many gates are needed
    8·1 answer
  • Which format has the largest file size?
    10·1 answer
  • From Edmentum/Plato
    10·1 answer
  • How to add a legend to a graph in excel?
    7·2 answers
  • Which tool can you use to display hardware utilization statistics that tell you about the operation of your computer?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!