Hibernate MCQ

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Hibernate”. 1. Which of the following is not a core interface of Hibernate? a) Configuration b) Criteria c) SessionManagement d) Session 2. SessionFactory is a thread-safe object. a) True b) False 3. Which of the following methods returns proxy object? a) loadDatabase() b) … Read more

advertisement

Java Questions & Answers – File and Directory

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “File and Directory”. 1. Which method is used to create a directory with fileattributes? a) Path.create() b) Path.createDirectory() c) Files.createDirectory(path, fileAttributes) d) Files.create(fileAttributes) 2. Which method can be used to check fileAccessiblity? a) isReadable(path) b) isWritable(path) c) isExecutable(path) d) isReadable(path), isWritable(path), and isExecutable(path) … Read more

advertisement

Java Questions & Answers – Java 8 Features

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Java 8 features”. 1. Which of the following is not introduced with Java 8? a) Stream API b) Serialization c) Spliterator d) Lambda Expression 2. What is the purpose of BooleanSupplier function interface? a) represents supplier of Boolean-valued results b) returns Boolean-valued result … Read more

advertisement

Java Questions & Answers – JUnits

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “JUnits”. 1. JUnits are used for which type of testing? a) Unit Testing b) Integration Testing c) System Testing d) Blackbox Testing 2. Which of the below statement about JUnit is false? a) It is an open source framework b) It provides an … Read more

advertisement

Java Questions & Answers – Type Interface

This section of our 1000+ Java MCQs focuses on Type interface in Java Programming Language. 1. Why are generics used? a) Generics make code more fast b) Generics make code more optimised and readable c) Generics add stability to your code by making more of your bugs detectable at compile time d) Generics add stability … Read more

advertisement

Java Questions & Answers – Core Java API Packages

This section of our 1000+ Java MCQs focuses core Java API packages in Java Programming Language. 1. Which of these package is used for graphical user interface? a) java.applet b) java.awt c) java.awt.image d) java.io 2. Which of this package is used for analyzing code during run-time? a) java.applet b) java.awt c) java.io d) java.lang.reflect … Read more

advertisement

Java Questions & Answers – Interfaces – 2

This set of Java Questions and Answers focuses on “Interfaces – 2”. 1. Which of the following access specifiers can be used for an interface? a) Protected b) Private c) Public d) Public, protected, private 2. Which of the following is the correct way of implementing an interface A by class B? a) class B … Read more

advertisement

Java Questions & Answers – Interfaces – 1

This section of our 1000+ Java MCQs focuses on interfaces of Java Programming Language. 1. Which of these keywords is used to define interfaces in Java? a) interface b) Interface c) intf d) Intf 2. Which of these can be used to fully abstract a class from its implementation? a) Objects b) Packages c) Interfaces … Read more

advertisement

Java Questions & Answers – Packages

This section of our 1000+ Java MCQs focuses on packages of Java Programming Language. 1. Which of these keywords is used to define packages in Java? a) pkg b) Pkg c) package d) Package 2. Which of these is a mechanism for naming and visibility control of a class and its content? a) Object b) … Read more

advertisement

Java Questions & Answers – Observable & Timer Class

This section of our 1000+ Java MCQs focuses on Observable & Timer class of Java Programming Language. 1. What is the use of Observable class? a) It is used to create global subclasses b) It is used to create classes that other part of the program can observe c) It is used to create classes … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.