×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
71 .
Which of the following is the reference data type ?
A.
int
B.
short
C.
double
D.
array
View Answer
Ans: array
72 .
In Java, using how many ways we can pass object as an argument to the function ?
A.
1
B.
2
C.
3
D.
4
View Answer
Ans: 1
73 .
Java uses ________ to represent characters
A.
ASCII code
B.
Unicode
C.
Byte code
D.
None of the above
View Answer
Ans: Unicode
74 .
What will be the output of following program ?
Class A
{
public static void main(String ...)
short a=10;
short b=20;
short res=a+b;
System.out.println("res :"+res);
}
A.
10
B.
20
C.
30
D.
Error
View Answer
Ans: Error
75 .
What are Wrapper classes ?
A.
These are classes that allow primitive types to be accessed as objects.
B.
These are classes that wraps functionality of an existing class.
C.
Both of the above.
D.
None of the above.
View Answer
Ans: These are classes that allow primitive types to be accessed as objects.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17