Java Programming → Page 3
Java MCQ : Java MCQ : Here you are going to get a selected list of
multiple choice questions (MCQ) on JAVA that will give you an idea of basic concept of object oriented
programming with Java language. These section include questions with answers on basic theory of Java to
test knowledge of fundamental concept of Java programming language. If you are going to apply for an
entry-level positions in Java related job, then you are not expected...READ MORE
Following section consists of some important multiple choice questions (mcq) on Programming Concept java programming with answers. Practice these questions on fully interactive online test mode to prepare for your java programming MCQ Test in Exams.
TEST INSTRUCTION: CLICK A CHECKBOX TO MARK IT AS YOUR ANSWER.
What is garbage collection in the context of Java?
Answer : Memory used by the object with no reference is automatically reclaimed. [Option : B]
Which one is a template for creating different objects ?
Answer : A class [Option : B]
Which symbol is used to contain the values of automatically initialized arrays?
Answer : Braces [Option : B]
Which one is true about a constructor ?
Answer : All of the above [Option : D]
Which of these operators is used to allocate memory to array variable in Java?
Answer : new [Option : D]