-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjava.txt
86 lines (86 loc) · 1.49 KB
/
java.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
tf
In an instance method or a constructor, "this" is a reference to the current object.
True
tf
Garbage Collection is manual process.
False
tf
Constructor overloading is not possible in Java.
False
tf
Assignment operator is evaluated Left to Right.
False
tf
All binary operators except for the assignment operators are evaluated from Left to Right
True
tf
Variable name can begin with a letter, "$", or "_".
True
tf
Interfaces can be instantiated.
False
tf
A .class file contains bytecodes?
True
tf
James Gosling is father of Java?
True
tf
Java technology is both a programming language and a platform.
True
mcq
What is the range of data type short in Java?
-128 to 127
-32768 to 32767
-2147483648 to 2147483647
None of the mentioned
2
mcq
An expression involving byte, int, and literal numbers is promoted to which of these?
int
long
byte
float
1
mcq
Which data type value is returned by all transcendental math functions?
int
float
double
long
3
mcq
Which of these coding types is used for data type characters in Java?
ASCII
ISO-LATIN-1
UNICODE
None of the above
3
mcq
Which of these class is superclass of String and StringBuffer class?
java.util
java.lang
ArrayList
None of above
2
mcq
Which of these operators can be used to concatenate two or more String objects?
+
+=
&
||
1
mcq
Which of these method of class String is used to obtain length of String object?
get()
Sizeof()
lengthof()
length()
4
mcq
Which of these constructors is used to create an empty String object?
String()
String(void)
charAt()
CharAt()
3