Podcast
Questions and Answers
What method returns the absolute value of its argument in the Math class?
What method returns the absolute value of its argument in the Math class?
- round()
- pow()
- max()
- abs() (correct)
Which constant is present in the Math class to represent the mathematical value of pi?
Which constant is present in the Math class to represent the mathematical value of pi?
- PIE
- π (correct)
- e
- pi
In Java, what does the Math class conventionally use to name constants?
In Java, what does the Math class conventionally use to name constants?
- Capital Letters (correct)
- camelCase
- LowerCase
- MixedCase
Which method in the Math class returns a double value greater than or equal to 0.0 and less than 1.0?
Which method in the Math class returns a double value greater than or equal to 0.0 and less than 1.0?
What does the max() method in the Math class return?
What does the max() method in the Math class return?
Which method in the Math class raises Euler's number e to the power of its argument?
Which method in the Math class raises Euler's number e to the power of its argument?
What does the method Math.max(j,k) do?
What does the method Math.max(j,k) do?
What does explicit casting in Java allow us to do?
What does explicit casting in Java allow us to do?
Which syntax represents explicit casting in Java?
Which syntax represents explicit casting in Java?
Which class in Java is a utility class with static methods?
Which class in Java is a utility class with static methods?
What does the Integer class method max(…) do?
What does the Integer class method max(…) do?
'Java convention is to name constants using capital letters' is associated with which class?
'Java convention is to name constants using capital letters' is associated with which class?
What does the toString(…) method do?
What does the toString(…) method do?
Which method is used to convert a character string to an integer?
Which method is used to convert a character string to an integer?
In TotalQuantity.java, what does the line 'String qtyAsString = line.substring(commaAt+1);' do?
In TotalQuantity.java, what does the line 'String qtyAsString = line.substring(commaAt+1);' do?
What is the purpose of wrapper classes in Java?
What is the purpose of wrapper classes in Java?
What is the role of the Integer class in Java?
What is the role of the Integer class in Java?
Why are wrapper classes called 'wrapper' classes?
Why are wrapper classes called 'wrapper' classes?