menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
What will be the output of the program? public class SqrtExample { 03 03 O NaN O Compilation fails public static void main(String [] args) { double value = -9.0; System.out.println( Math ,sqrt(value));
asked
Jul 28, 2023
13.0k
views
4
votes
What will be the output of the program? public class SqrtExample { 03 03 O NaN O Compilation fails public static void main(String [] args) { double value = -9.0; System.out.println( Math ,sqrt(value));
Mathematics
college
Dkellygb
asked
by
Dkellygb
7.7k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
7
votes
Answer:
216apower4 b + 512 abpower4
Julien Quere
answered
Aug 3, 2023
by
Julien Quere
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Nov 27, 2020
66.7k
views
Analyzing the following code: class Test { public static void main(String args[]) { NClass nc = new NClass(); nc.t = nc.t++; } } class Foo { int t; private NClass() { } } The program has a compilation
Gelatin
asked
Nov 27, 2020
by
Gelatin
9.1k
points
Computers and Technology
high-school
1
answer
1
vote
66.7k
views
asked
Dec 12, 2024
12.4k
views
Which line(s) of code have a runtime or compile error: package cop3337.exam3; public class COP3337Exam3 public static void main(String[] args) int[] numbers = new int[10]; try try 2 3 for(int i=0; i< 10; i++) numbers [i] = 18 *i; 13 14 if(i%2== 1) throw new Exception("P1"); 15 16 17 if(i%2==0) throw new ArrayIndexOutOfBoundsException("P2"); 18 19 20 //end for catch(ArithmeticException e) System.out.print(e.getMessage() + " L1"); catch(ArrayIndexOutOfBoundsException e) System.out.print(e.getMessage()+" L2 "); catch(Exception e) System.out.println(e.getMessage()+" L3 "); finally throws new Exception("L4"); catch(Exception e) 33 34 35 System.out.println(e.getMessage()+" L5"); 36 37 System.out.print("\\"); //end main 38 39 //end class 12, 32 15 No error in code: 29
Nataliia
asked
Dec 12, 2024
by
Nataliia
7.8k
points
Computers and Technology
high-school
1
answer
5
votes
12.4k
views
asked
Apr 22, 2024
116k
views
public class ChangeCase {public static void main(String args[]) {Scanner s = new Scanner(System.in); String sample; String result; System.out.println("Enter a string or done when you want to quit."); sample
Jens Borrisholt
asked
Apr 22, 2024
by
Jens Borrisholt
7.9k
points
Computers and Technology
high-school
1
answer
1
vote
116k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
How do you can you solve this problem 37 + y = 87; y =
What is .725 as a fraction
How do you estimate of 4 5/8 X 1/3
A bathtub is being filled with water. After 3 minutes 4/5 of the tub is full. Assuming the rate is constant, how much longer will it take to fill the tub?
Write words to match the expression. 24- ( 6+3)
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org