Advanced Java Questions & Answers – Debugging in Eclipse

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Debugging in Eclipse”. 1. Which mode allows us to run program interactively while watching source code and variables during execution? a) safe mode b) debug mode c) successfully run mode d) exception mode 2. How can we move from one desired step … Read more

advertisement

Advanced Java Questions & Answers – Design Patterns

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Design Patterns”. 1. Which of the below is not a valid design pattern? a) Singleton b) Factory c) Command d) Java 2. Which of the below author is not a part of GOF (Gang of Four)? a) Erich Gamma b) Gang Pattern … Read more

advertisement

Advanced Java MCQ – JDBC

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “JDBC”. 1. Which of the following contains both date and time? a) java.io.date b) java.sql.date c) java.util.date d) java.util.dateTime 2. Which of the following is advantage of using JDBC connection pool? a) Slow performance b) Using more memory c) Using less memory … Read more

advertisement

Advanced Java Questions & Answers – Java Beans

This set of Advanced Java Multiple Choice Questions & Answers (MCQs) focuses on “Java Beans”. 1. Which of the following is not an Enterprise Beans type? a) Doubleton b) Singleton c) Stateful d) Stateless 2. Which of the following is not true about Java beans? a) Implements java.io.Serializable interface b) Extends java.io.Serializable class c) Provides … Read more

advertisement

Java Questions & Answers – Wildcards

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Wildcards”. 1. Which of these is wildcard symbol? a) ? b) ! c) % d) & 2. What is use of wildcards? a) It is used in cases when type being operated upon is not known b) It is used to make code … Read more

advertisement

Java Questions & Answers – Restrictions on Generics

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Restrictions on Generics”. 1. Which of these types cannot be used to initiate a generic type? a) Integer class b) Float class c) Primitive Types d) Collections 2. Which of these instance cannot be created? a) Integer instance b) Generic class instance c) … Read more

advertisement

Java Questions & Answers – Generic Methods

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Generic Methods”. 1. What are generic methods? a) Generic methods are the methods defined in a generic class b) Generic methods are the methods that extend generic class methods c) Generic methods are methods that introduce their own type parameters d) Generic methods … Read more

advertisement

Java Questions & Answers – Generics

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Generics”. 1. What will be the output of the following Java code? import java.util.*; public class genericstack <E> { Stack <E> stk = new Stack <E>(); public void push(E obj) { stk.push(obj); } public E pop() { E obj = stk.pop(); return obj; … Read more

advertisement

Java Questions & Answers – Coding best practices

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Coding best practices”. 1. What should the return type of method where there is no return value? a) Null b) Empty collection c) Singleton collection d) Empty String 2. What data structure should be used when number of elements is fixed? a) Array … Read more

advertisement

Java Questions & Answers – Liskov’s Principle

This set of Java Questions and Answers for Campus interviews focuses on “Liskov’s Principle”. 1. What does Liskov substitution principle specify? a) parent class can be substituted by child class b) child class can be substituted by parent class c) parent class cannot be substituted by child class d) No classes can be replaced by … 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.