Question
a.
long
b.
int
c.
double
d.
float
Posted under Java Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. If an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?
Similar Questions
Discover Related MCQs
Q. What is Truncation is Java?
View solution
Q. Which of these operators is used to allocate memory to array variable in Java?
View solution
Q. Which of these is an incorrect array declaration?
View solution
Q. Which of these is an incorrect Statement?
View solution
Q. Which of these is necessary to specify at time of array initialization?
View solution
Q. Generics does not work with?
View solution
Q. How to sort an array?
View solution
Q. How to copy contents of array?
View solution
Q. Can you make an array volatile?
View solution
Q. Where is array stored in memory?
View solution
Q. An array elements are always stored in ________ memory locations?
View solution
Q. What is the range of short data type in Java?
View solution
Q. What is the range of byte data type in Java?
View solution
Q. An expression involving byte, int, and literal numbers is promoted to which of these?
View solution
Q. Which of these literals can be contained in float data type variable?
View solution
Q. Which data type value is returned by all transcendental math functions?
View solution
Q. How to format date from one form to another?
View solution
Q. How to convert Date object to String?
View solution
Q. How to convert a String to a Date object?
View solution
Q. Is SimpleDateFormat thread safe?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!