## Which class is used for using different mathematical methods in Java program?

Q31. Which class is used for using different mathematical methods in Java program? Ans. Math class is used for using different

## Resultant type of the following expression bh – i + db / fl – i * fl + db / i, (int) ( fl + db )

Q30. What will be the resultant type of the following expression is if bh represents a byte variable, i is

## Java expressions: ut+1/2ft2, |a|+b>=|b|+a,  e|2x^2-4x|

Q27. Write equivalent Java expressions for the following expressions: ut+1/2ft2 |a|+b>=|b|+a  e|2x^2-4x| Ans 1. ut+1/2ft2 u*t+1/2*f*t*t Ans 2. |a|+b>=|b|+a

## Type Casting and Type Cast Operator.

Q29. What do you mean by type casting? What is type cast operator? Ans. The explicit conversion of an operand

## Implicit and Explicit Type Conversion.

Q28. What is meant by implicit and explicit type conversion? Ans.  Implicit Type Conversion: An implicit type conversion is a conversion

## Result of following expression ans-val > 500 ? 150 : 50

Q26. What will be the result of following expression if ans=700, val=300 ans=800, val=700 ans-val > 500 ? 150 :

## result of expression if age=25, age=65, age=85 age > 65 ? 350 : 100

Q25. What will be the result of following expression if age=25 age=65 age=85 ? age > 65 ? 350 :

## What will be the value of following, if j=5 initially? (5* ++j)%6 (5*j++)%6

Q24. What will be the value of following, if j=5 initially? (5* ++j)%6 (5*j++)%6 Ans. (5* ++j)%6 initially j=5 after