Computer Applications
Predict the return data type of the following:
int p; double q;
r = p+q;
System.out.println(r);
Values & Data Types Java
91 Likes
Answer
Return data type is double.
Answered By
48 Likes
Related Questions
In what way is static declaration different from dynamic declaration?
What do you mean by non-primitive data type? Give examples.
Predict the return data type of the following:
float m; p = m/3*(Math.pow(4,3)); System.out.println(p);What are the resultant data types if the following implicit conversions are performed? Show the result with flow lines.
int i; float f; double d; char c; byte b;(a) i + c/b;
(b) f/d + c*f;
(c) i + f - b*c;
(d) (f/i)*c + b;
(e) i + f- c + b/d;
(f) i/c + f/b;