MCQ-Java

MCQ – Java Polymorphism

ULTIMATE MCQs – Multiple Choice Questions on Porlymorphism in java oops concept with Answer and Explanation to polish your concepts and help in written test in job interviews. MCQs on Polymorphism in Java Q) What concepts come under Polymorphism in java? Method overloading Constructor overloading Method overriding All the above Answer: 4 Explanation: All mentioned […]

MCQ Java Interfaces

Q) Which keyword is used to declare an interface in java? class interface implements abstract Answer: 2Interface keyword is used to create an interface in java programs. For example,Interface A{} Recommended to read complete notes on interface in java with examples. Q) A java interface can contain ———— public static Final Variables only public Abstract […]

MCQ – Java oops concept

Q) Java object oriented programming concepts is/are Encapsulation Inheritance polymorphism All of the above. Answer: 4 Q) Java does not support _______________? Inheritance Multiple inheritance for classes multiple inheritance of interfaces compile time polymorphism Answer: 2Java does not support multiple inheritance for classes but in java multiple inheritance behavior is implemented using interfaces. Q) Runtime […]

MCQ – Java Exceptions

Q) Types of exceptions in Java programming are Checked exception unchecked exception Both A & B None Answer: 3 Q) Checked exception caught at compile time run time Both at compile and run time None Answer: 1 Q) Unchecked exception caught at compile time run time Both at compile and run time None Answer: 2Unchecked […]

MCQ on Java keywords

Q) Final keyword in java is used with class class fields class methods All of the above Answer: 4Don’t want somewhere in the program to change class fields, then make it final.don’t want to allow a class to be inherited, then make the class finalwant to allow another class to inherit method of a class […]

MCQs – Java Inheritance

Q) Which inheritance in java programming is not supported Multiple inheritance using classes Multiple inheritance using interfaces Multilevel inheritance Single inheritance Answer: 1 NOTE: Java does not support multiple inheritance of classes but it supports multiple inheritance for interfaces. Means, a class cannot inherit more than one class but it can inherit and implement multiple […]

MCQ- Java thread

MCQ- Java multithreading multiple choice questions with answers and explanation. 50% of the MCQ on multithreading in java are asked in interviews. But, additional objective questions have been added to cover java thread concept. Q) In java multi-threading, a thread can be created by Extending Thread class Implementing Runnable interface Using both None Answer: 3In java […]

Scroll to top