Question: 1.A Java class can contain which of the following? a) Only Methods b)Only Data c)Objects d)Methods and Data e)All of the above 2.Which of the
1.A Java class can contain which of the following?
a) Only Methods
b)Only Data
c)Objects
d)Methods and Data
e)All of the above
2.Which of the following types can be assigned to a variable of type int without type casting?
a)byte
b)long
c)double
d)String
e)All of the above
3.Select all of the following choices that are primitive types
a)short
b)float
c)String
d)Scanner
e)boolean
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
