Java Programming MCQ QB1
Java Programming MCQ QB1
3 ____________ is one of the java features that enables java program to run anywhere
anytime.
a)Object-Oriented
b) Multithreaded
c)Platform-Independent
d) Dynamic & Extensible
4 _____________ is one of the java features that can handle multiple tasks
simultaneously.
a)Object-Oriented
b) Dynamic & Extensible
c)Platform-Independent
d) Multithreaded
9 The ____________ includes hundred of classes and methods grouped into several
function packages.
a)API
b) JVM
c)JAVAC
d) JRE
10 The java interpreter uses ____________ method before any objects are created.
a)Class
b) Main
c)Constructor
d) All of above
16 Casting from byte to __________ data type, the result is no loss information.
a)short
b) int
c)long
d) all of above
17 Casting from shot to __________ data type, the result is no loss information.
a)byte
b) int
c)long
d) double
18___________ refer to fix value that does not change during the execution of a
program.
a)variables
b) constants
c)identifiers
d) integer
25 Which statement is used to skip the loop and continue with the next iteration?
a)continue
b) terminate
c)skip
d) break
26 _________ is a group of contiguous or related data items that share a common name.
a)Variable
b) Array
c)Constant
d) none
27 Which of the following is the correct declaration statement in java program?
a) int num=new int[5]
b) int num=new num[5]
c) int[] num=new int[5]
d) None
28 Java __________________.
a)Only compiles
b) Only interprets
c)Compiles and then interprets
d) Interprets & then compile
Happy Learning!