Computer Science, asked by taranrajput11, 3 months ago

A program where incorrect results are produced due to implicit conversion in java.​

Answers

Answered by steellbird07
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 SƬᏗᏒᏇᏗƦƦᎥᎧƦ
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