Computer Applications
Which of the following type conversions in Java will result in a loss of precision?
Related Questions
The default value of a boolean variable is:
- False
- 0
- false
- True
Consider the array given below:
char ch[] = {'A','E','I','O', 'U'};
Write the output of the following statements:
System.out.println(ch[0]*2);:
- 65
- 130
- 'A'
- 0
The number of bytes occupied by a character array of four rows and three columns are:
- 12
- 24
- 96
- 48
Assertion (A): The
boolean
data type in Java can have only two possible values:true
orfalse
.Reason (R): Boolean values in Java are stored as integers, with
true
represented by 1 andfalse
by 0.