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
sineoko [7]
4 years ago
15

What is the output of the second println statement in the main method, public class foo { int i ; static int s ; public sttic vo

id main (string[] args) { foo f1 = new foo() ; system.out.println("f1, i is " + f1.i + f1.s is " + foo f2 = new foo () ; system.out.println (" f2.i is " + f2.i + f2.s is " + foo f3 = new foo () ;a) f2.i is 1 f2.s is 1.b) f2.i is 1 f2.s is 2.c) f2.i is 2 f2.s is 2.d) f2.i is 2 f2.s is 1.e) f2.i is 0 f2.s is 1.
Computers and Technology
1 answer:
Sedaia [141]4 years ago
6 0

Answer:

b) f2.i is 1 f2.s is 2

Explanation:

i is an instance variable and s is static, shared by all objects of the Foo class.

You might be interested in
Define the term algorithm and describe how programmers use algorithms when designing a program.
Ber [7]

Answer:

programming algorithm as a recipe that describes the exact steps needed for the computer to solve a problem or reach a goal. In many cases, there are multiple ways to perform a specific operation within a software program. Therefore, programmers usually seek to create the most efficient algorithms possible. By using highly efficient algorithms, developers can ensure their programs run as fast as possible and use minimal system resources. Of course, not all algorithms are created perfectly the first time. Therefore, developers often improve existing algorithms and include them in future software updates. When you see a new version of a software program that has been "optimized" or has "faster performance," it most means the new version includes more efficient algorithms.

Explanation:

3 0
4 years ago
ANSWER QUICKLY PLEASE
DochEvi [55]

Explanation:

I don't know what is the question.

? should have the value of 4

binary digit 10000011 is equal to 128 plus 2 plus 1 = 131 in decimal

3 0
4 years ago
Which is an example of an input device?
kondor19780726 [428]

Answer:

b, a keyboard. Sometimes a, if it contains a microphone.

8 0
4 years ago
Read 2 more answers
What’s the difference between a stream and a tab?
Elza [17]

Answer:

Option (D) is the correct option to the following question.

Explanation:

Because a tab is labeled the stream i.e., dashboard, tab is the former representation of user profile in their social media account and streams displays only the different forms of one user profile. They also are the conversations, timeline, and post of any users' profile.

6 0
4 years ago
The Word program window contains many elements used to create and navigate a document. List five elements of the Word program wi
Veseljchak [2.6K]

Answer:

1. Insert a table

2. Setting margins

3. Spelling and grammar correction

4. Header and footer

5. Search a word

Explanation:

1) A table can be inserted in a word document to manage data easily and in a more presentable way.

2) Different margins can be set according to the requirement and rulers can be made visible and invisible.

3) If by chance typo errors happen, a red wavy line indicates spelling mistakes and green indicates grammar mistakes which can be corrected easily.

4) Sometimes writing some professional documents, we need some text to be visible either on top or bottom of every page of that document which can be done with the help of headers and footers.

5) By pressing Ctrl+f we can easily search for a particular word in a document.

6 0
4 years ago
Other questions:
  • What is binary coded decimal,EBCD and ASCII
    15·1 answer
  • True or false words spelling and grammar check is always %100
    7·2 answers
  • Write a class named RetailItem that holds data about an item in a retail store. The class should store the following data in att
    15·1 answer
  • The actual database of Active Directory shared resources is stored on one or more computers designated as:
    6·1 answer
  • Help me for this question
    8·1 answer
  • Which best describes obliteration in a forged document?
    11·1 answer
  • . A program will ""fall through"" a case section if it is missing the __________ statement.
    15·1 answer
  • Sketch a 3-view orthographic projection of the object shown
    6·1 answer
  • PLS ANSWER. MARKING CORRECT ANSWER AS BRAINLIEST
    11·1 answer
  • I really need help in this!!!
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!