## Determine the datatype of resultant variable.

Q5. Given that: int x, m =2000; short y; byte b1 =-40, b2; long n; Which of the following assignment

Read moreQ5. Given that: int x, m =2000; short y; byte b1 =-40, b2; long n; Which of the following assignment

Read moreQ4. Determine the data type of the expression 1. 2. If p, x is an int, r, w is a

Read moreQ3. Can non-graphic characters be used and processed in Java? How? Give examples? Ans. Yes, Java allows certain non-graphic characters in

Read moreQ2. What are literal in Java? How many types of literals are allowed in Java? Ans. Literals (often referred to as

Read moreQ1. How are keywords different from identifiers? Ans. Keywords are the words that convey a special meaning to the language compiler.

Read moreQ42. Given the declarations boolean b; short x1=100, x2=200, x3=300; Which of the following are evaluated to true? b=x1*2==x2; b

Read moreQ41. Which of the following will produce a value of 10 if x=9.7? Math.floor(x) Math.abs(x) Math.round(x) Math.ceil(x) Ans. 3. Math.round(x)

Read moreQ40. Which of the following will produce a value of 22 if x=229? Math.ceil(x) Math.round(x) Math.abs(x) Math.floor(x) Ans. 3. Math.abs(x)

Read moreQ39. What will be result of the expression 9|9? 1 18 9 None of the above. Ans. 3. 9

Read moreQ38. What will be the result of the expression 13 & 25? (1310 =000011012, 2510=000110012) 38 25 9 12 Ans.

Read more