Java Multiple Choice Questions

  1. How many type of Primitive Data Types exist in Java?
    1. 5
    2. 7
    3. 8
    4. 10
Answer :
C
Explanation:
Added By : Deeksha


  1. A collection of methods with no implementation is called an ________.
    1. Polymorphism
    2. Inheritance
    3. Interface
    4. Data Binding
Answer :
C
Explanation:
Added By : Prashant

  1. What is the correct signature of the main method?
    1. public static void main(String[] args)
    2. static public void main(String[] args)
    3. public void main(String[] args)
    4. A and B Both
Answer :
D
Explanation:
Added By : Prashant


  1. Which is not a valid comment style in Java
    1. /* comment */
    2. /* comment
    3. /** comment */
    4. // comment
Answer :
B
Explanation:
Added By : Prashant

  1. The Java programming language is a ________?
    1. Machine Level Language
    2. High Level Language
    3. Assembly Level Language
    4. None of the above
Answer :
B
Explanation:
Added By : Prashant

  1. Which is not a valid keyword in java?
    1. null
    2. transient
    3. synchronized
    4. native
Answer :
A
Explanation:
Added By : Jagdish Gupta


Post Your Question
Social Sharing
Search