"Write a Java program to declare and initialize variables of all primitive data types "
Please help me
I don't know
It's my Exam
Answers
Answered by
2
Answer:
public class Test {
public static void main(String args[]) {
byte b = 72;
short s = 150;
int i = 7500;
long l = 123456L;
float f = 12.4f;
double d = 1.232323232323;
char c = 'A';
boolean bo = true;
}
}
Best of luck for your exam.
Similar questions
English,
3 months ago
Computer Science,
6 months ago
Math,
6 months ago
Social Sciences,
10 months ago
History,
10 months ago