Java Programming Set 1
Java Programming Set 1
o m
B. Both Procedural and Object Oriented Programming are supported in Java
C. Java supports only Object Oriented Programming approach
D. None of the Above . c
Answer: C
te
a
3. JRE stands for
q M
A. Java Realtime Environment
c
B. Java Rapid Enterprise
C. Java Runtime Environment
M
D. None of the above
Answer: C
9. Which of these coding types is used for data type char in Java?
A. ASCII
B. ISO-LATIN-1
C. UNICODE
D. None of the mentioned
Answer: C
14. Which of these operators is used to allocate memory to array variable in Java?
A. malloc
B. alloc
C. new
D. new malloc
Answer: C
15. Which of the following loops will execute the body of loop even when condition
controlling the loop is initially false?
A. do-while
B. while
C. for
D. None of the mentioned
Answer: A
16. Which of these is necessary condition for automatic type conversion in Java?
21. Which of these jump statements can skip processing remainder of code in its
body for a particular iteration?
A. break
25. What is stored in the object obj in following lines of code? box obj;
A. Memory address of allocated memory of object.
B. NULL
C. Any arbitrary pointer
D. Garbage
Answer: B