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?
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?
In Java, what does the Math class conventionally use to name constants?
In Java, what does the Math class conventionally use to name constants?
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?
Signup and view all the answers
What does the max() method in the Math class return?
What does the max() method in the Math class return?
Signup and view all the answers
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?
Signup and view all the answers
What does the method Math.max(j,k) do?
What does the method Math.max(j,k) do?
Signup and view all the answers
What does explicit casting in Java allow us to do?
What does explicit casting in Java allow us to do?
Signup and view all the answers
Which syntax represents explicit casting in Java?
Which syntax represents explicit casting in Java?
Signup and view all the answers
Which class in Java is a utility class with static methods?
Which class in Java is a utility class with static methods?
Signup and view all the answers
What does the Integer class method max(…) do?
What does the Integer class method max(…) do?
Signup and view all the answers
'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?
Signup and view all the answers
What does the toString(…) method do?
What does the toString(…) method do?
Signup and view all the answers
Which method is used to convert a character string to an integer?
Which method is used to convert a character string to an integer?
Signup and view all the answers
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?
Signup and view all the answers
What is the purpose of wrapper classes in Java?
What is the purpose of wrapper classes in Java?
Signup and view all the answers
What is the role of the Integer class in Java?
What is the role of the Integer class in Java?
Signup and view all the answers
Why are wrapper classes called 'wrapper' classes?
Why are wrapper classes called 'wrapper' classes?
Signup and view all the answers