A program where incorrect results are produced due to implicit conversion in java.
Answers
Answered by
0
Answer:
Explanation:
Explicit type conversion is a type conversion which is explicitly defined within a program (instead of being done by a compiler for implicit type conversion). It is defined by the user in the program. ... Before the conversion is performed, a runtime check is done to see if the destination type can hold the source value.
Answered by
30
public class FindAverage
{
public static void main( String args [ ] )
{
int sum = 60;
int count = 80 ;
double average ;
average = sum / count ;
System.out.println (" Average is : " + average ) ;
}
}
Output
Average is : 0.0
Similar questions
Computer Science,
1 month ago
CBSE BOARD XII,
3 months ago
Hindi,
3 months ago
Science,
8 months ago
Math,
8 months ago