subject

State what’s printed for each println in the code below: public static void main(String args[ ])

{

MyClass theObj = new MyClass( );
theObj. gravy = 107.43;
String s = "hello";
int xray[] = {1, 2, 3, 4, 5};
double floozy = 97.4;
myMethod(floozy, theObj, xray, s );
System. out. println(floozy); // Problem 1:
System. out. println(theObj. gravy); //Problem 2:
System. out. println(xray[2]); //Problem 3:
System. out. println(s); //Problem 4:
}
public static void myMethod(double floozy, MyClass anObj, int a[ ], String s)
{
floozy = 13.1;
anObj. gravy = 10.001;
a[2] = 100; s = "good bye";
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Are special characters that allow you to search for multiple words at the same time.
Answers: 2
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 25.06.2019 00:30
How do i take a screenshot on a laptop?
Answers: 2
question
Computers and Technology, 25.06.2019 01:30
What controls can be found on the file tab of microsoft word
Answers: 1
You know the right answer?
State what’s printed for each println in the code below: public static void main(String args[ ])
Questions
question
Mathematics, 28.07.2020 18:01
Questions on the website: 13722367