float f = 1.3; // 1.3 constant is of type double. Therefore, 1.3f should be used
int i = 10; // Ok
char c = "a"; // Char constants should be written in single quotation marks: 'a';
byte b = 255; // byte range varies from -128 to 127
boolean b = null; // null value is acceptable only for reference types
Login in to like
Login in to comment