6)
What can be the return type of main method?
A) int B) char c) void D) float
- Only A)
- Only C)
- Both A) and C)
- All
Correct Answer: 2
Only C)
8)
Which is a primitive data type?
- String
- Character
- Float
- byte
Correct Answer: 4
byte
All primitive data types have their own classes, here String, Character and Float are classes but byte is primitive data type.