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]
3 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]3 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
Suppose you are asked to design a rotating disk where the number of bits per track is constant. You know that the number of bits
Olenka [21]

Answer:

suppose i was i would tell them i dont know and walk away

Explanation:

in thoery this is correct

you said suppose so i answerd

there is no use in reporting or getting this taken down

nether is it right

im not stealing points

Because in thoery its an answer

<em><u>THIS IS MY PROTEST</u></em>

6 0
3 years ago
The new tag in HTML 5 means that it explanation or pronunciation of characters for Asian typography O sets a container for an ex
Eddi Din [679]

Answer:

yes very correctExplanation:

5 0
2 years ago
1. It is a set of integrated devices that input, output,
grin007 [14]

Answer:

A

Explanation:

Program system and software canot pulg in

4 0
3 years ago
Write a function called st_dev. St_dev should have one #parameter, a filename. The file will contain one integer on #each line.
kodGreya [7K]

Answer:

  1. import statistics
  2. def st_dev(file_name):
  3.    with open(file_name) as file:
  4.        data = file.readlines()
  5.        numList = []
  6.        for x in data:
  7.            numList.append(int(x))
  8.        
  9.        return statistics.pstdev(numList)
  10. print(st_dev("text1.txt"))

Explanation:

The solution code is written using Python.

To ease the calculation task, we can import Python statistics module to use the pstdev method to calculate the population standard deviation of a list of numbers (Line 1).

Next, create a st_dev function that take single argument file_name (Line 3). In the function, it will open the input file and read the data line by line (Line 4-5). Create a for loop to traverse through each line of the data which is an integer and append it to numList (Line 7-8). We can pass the numList to pstdev method (Line 10) and return the resulting standard deviation value as output.

We test the function by passing a file which hold a list of integer values in each line (Line 12).

8

9

12

11

21

15

16

10

7

13

And the output we shall get is 4.019950248448356

6 0
3 years ago
Ergonomia este știința care studiază ....
maria [59]

Answer:

Ergonomia (sau factorii umani) este disciplina științifică preocupată de înțelegerea interacțiunilor dintre om și alte elemente ale unui sistem și profesia care aplică teorie, principii, date și metode pentru a proiecta pentru a optimiza bunăstarea umană și în general performanta sistemului."

Explanation:

4 0
3 years ago
Other questions:
  • You can access various sites on the WWW by using hyperlinks or by
    14·1 answer
  • Which is a real-world example of a procedure?
    11·1 answer
  • Which type of graph or chart will you use to show changes in data points?
    5·1 answer
  • Please help me!! 10 Points are waiting!!
    8·1 answer
  • Suppose you will invest $100 per month at the beginning of the month for 40 years with interest rate
    5·1 answer
  • What Are the Benefits of Using Leads Automation Tool?
    5·1 answer
  • Gabriel's sister called him about a message that suddenly appeared on her screen that says her software license has expired and
    11·1 answer
  • Seneca has just applied conditional formatting and realizes that she has made a mistake. Which action should she take to fix the
    12·2 answers
  • Which of the following uses the proper syntax for creating an HTML comment?
    8·1 answer
  • ____allow(s) visually impaired users to access magnified content on the screen in relation to other parts of the screen.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!