Computer Science, asked by amrata2965, 8 months ago

Find the output of: int k=’b’;
System.out.println(k);

Answers

Answered by arnavverma95
0

Explanation:

Hi amrata ,

this piece of code will give you an error because the int type variable cannot store a character.

use some other value other than 'b' or change the data type to char.

Similar questions