Java Assignment
Java Assignment
Ans:Bytecode is executed by
JVM(A)
A. Dynamic
B. Architecture Neutral
C. Use of pointers
D. Object-oriented
Ans: Use of pointers(c)
A. interface
B. string
C. Float
D. Unsigned
Ans:interface(A)
A. 0.0d
B. 0.0f
C. 0
D. not defined
Ans:0.0d(A)
C. class variable
D. class variables, local variables
Ans:class variable, local
variable, instance variable(B)
A. undefined
B. 0
C. null
D. not defined
Ans:null(c)
A. 8 bit
B. 16 bit
C. 32 bit
D. 64 bit
Ans:64bit(D)
A. Static Binding
B. Dynamic Binding;
9. What will happen if static modifier is removed from the signature of the
main method?
A. Compilation Error
B. RunTimeError: NoSuchMethodError
A. Volatile variable
B. Mutable variable
C. Immutable variable
D. Dynamic variable
Ans:Mutable variable
A. char c1 = 'face';
B. char c2 = 0xbeef;
C. char c3 = \u0022;
D. char c4 = '\iface';Netscape
Ans:char c1 = 'face'
15. Which built-in method combines the text of two strings and returns a new
string?
A. append()
B. concat()
C. attach()
A. if i = 5
B. if i = 5 then
C. if (i == 5)
D. All of these
Ans:if (i == 5)
A. interface
B. throws
C. program
D. short
Ans: program
A. Dennis Ritchie
B. James Gosling
C. Larry Page
D. Serge Page
Ans:James Gosling
A. J++
B. C++
C. Oak
D. Teak
Ans:Oak