Posted inQuiz Java Interview Questions Quiz (Multiple Choice) Posted by Mr. AI March 10, 2025 Spread the love Java Interview Questions Quiz Java Interview Questions Quiz 1 / 20 Which keyword is used to inherit a class in Java implements extends inherits super 2 / 20 Which method is the entry point of a Java program start() main() run() init() 3 / 20 Which of the following is not a Java access modifier private protected internal public 4 / 20 Which of the following is used to handle exceptions in Java throw try-catch final error 5 / 20 Which keyword is used to create an object in Java new create class object 6 / 20 Which operator is used for comparison in Java == = := !== 7 / 20 Which interface provides the capability to store elements using a key-value pair Map List Set Collection 8 / 20 Which class is the superclass of all classes in Java Object Class Main Base 9 / 20 Which collection does not allow duplicate elements List Map Set Queue 10 / 20 Which of the following is not part of Java exception hierarchy Throwable Error Exception Runtime 11 / 20 Which keyword prevents method overriding static final abstract private 12 / 20 Which of the following is not a primitive data type in Java int char String boolean 13 / 20 Which of the following allows multiple implementations of an interface method Polymorphism Encapsulation Abstraction Inheritance 14 / 20 What is the default value of a local variable in Java null 0 undefined no default value 15 / 20 Which method is called when an object is created main() finalize() constructor init() 16 / 20 Which type of class cannot be instantiated Final Abstract Static Public 17 / 20 Which keyword is used to access parent class methods this base super parent 18 / 20 Which class is used to handle input from the user InputReader BufferedReader Scanner Reader 19 / 20 Which of the following is used to define a constant variable in Java const define final static 20 / 20 Which keyword is used to define an interface in Java class interface extends implements Your score isThe average score is 62% 0% Restart quiz Related: Machine Learning Basic Level Interview Questions Quiz (Multiple Choice) Python Basics Interview Questions Quiz (Multiple Choice) Python Intermediate Level Interview Questions Quiz (Multiple Choice) Mr. AI My name is Ram. I am a Data Scientist and Machine Learning expert with good knowledge in Generative AI. Working for a top MNC in New York city. I am writing this blog to share my knowledge with enthusiastic learners like you. View All Posts Post navigation Previous Post Machine Learning Advanced Level Interview Questions Quiz (Multiple Choice)Next PostDBMS Interview Questions Quiz (Multiple Choice)