Computer Applications
Name the keyword which:- indicates that a method has no return type.
- makes the variable as a class variable
Values & Data Types Java
ICSE 2019
47 Likes
Answer
- void
- static
Answered By
31 Likes
Related Questions
Identify and name the following tokens:
- public
- 'a'
- ==
- { }
What are the resulting data type of the following explicit conversions?
int i; float f; double d; short s; char c; byte b;
(a) (float) i/b + d;
(b) (int)f*d + c/s;
(c) (char)i + f - b*d;
(d) (double) (f/i)*c + s;
(e) (char) d + b/i - f*s;
Write the memory capacity (storage size) of short and float data type in bytes.
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.