Blog Archives
1 2

00: Top 50+ Core Java interview questions answered – Q24 to Q36

Focus is on Java classes, interfaces and generics the interview questions and answers style. Java classes and interfaces are the building blocks. Q24. What happens when a parent and a child class have the same variable name? A24. When both a parent class and its subclass have a field with…

Read more ...
Tags: , , , ,

00: Top 50+ Core Java interview questions answered – Q37 to Q42

As a Java developer, you may not need to know how the JVM works, but the most important topic that you must know is Java Garbage Collection. How the Garbage Collection and object referencing work in Java. Q37. What do you know about the Java garbage collector? When does the…

Read more ...
Tags: , , , ,

00: Top 50+ Core Java Interview questions answered – Q43 to Q54

Q43. What can you tell about the performance of a HashMap compared to a TreeMap? Which one would you prefer? A43. A balanced tree does have O (log n) performance. The TreeMap class in Java maintains key/value objects in a sorted order by using a red-black tree. A red-black tree…

Read more ...
Tags: , , , ,

02: 6 Java RESTful Web services Interview Q&As

Q1. What is RESTful Web service, and why is it favored over SOAP Web service? A1. REST stands for REpresentational State Transfer (REST), which is a stateless software architecture that reads webpages containing XML, JSON, Plain text, etc. REST is a simpler alternative to Simple Object Access Protocol (SOAP) and…

Read more ...
Tags: ,

02: 7 More Maven interview Questions & Answers

Q1. How will you go about creating master builds or releases using Maven? A1. Step 1: Log into the server that has maven set up to perform release builds. Step 2: You need to checkout the fresh copy of the artifacts that you are going to build. For example, if…

Read more ...
Tags: ,

02: 9 Java Collection interview Q&As on choosing the right data structure

Choosing the right data structure is vital to get the job done with proper space vs performance trade-offs. Q1. What are the common data structures, and where would you use them? A1. Deterministic Data Structures like Arrays, Lists, Sets, Maps, Trees, and Graphs. Many leave out Trees and Graphs as…

Read more ...
Tags: ,

02: JavaScript mistakes interview Q&As

Q1. What are the common JavaScript errors or bad practices that you have noticed? A1. 1) Not having proper namespaces and not using AMD (i.e. Asynchronous Model Definition) API to modularize the Java code for improved maintainability. 2) Not using the var to declare your variables. If you don’t use…

Read more ...
Tags:

03: 12 Java Generics interview Q&As

Q1 What do you understand by the term type erasure with regards to generics? A1. The term type erasure is used in Java generics. In the interest of backward compatibility, robustness of generics has been sacrificed through type erasure. Type erasure takes place at compile-time. So, after compiling List and…

Read more ...
Tags: , ,

03: 21+ Java Servlet interview Q&As

Q1. What is a Servlet? Is a Servlet inherently multi-threaded? A1. A Servlet is a Java class that runs within a web container in an application server, servicing multiple client requests concurrently forwarded through the server and the web container. The web browser establishes a socket connection to the host…

Read more ...
Tags: , ,

03: 9 Core Java Concepts you can’t afford to not know

Q1. How will you go about explaining the following Java concepts to a beginner who is starting to learn Java? 1. Process Vs Threads 2. Heap versus Stack 3. Local variables versus instance variables 4. How do threads communicate with each other? 5. Are Java methods reentrant? 6. Does Java…

Read more ...
Tags: ,

04 17 Spring bean life cycles & scopes FAQs

Q1. Does Spring dependency injection happen during compile time or runtime? A1. Runtime during creating an object. Q2. What is the difference between prototype scope and singleton scope? Which one is the default? A2.Singleton means single bean instance per IoC container, and prototype means any number of object instances per…

Read more ...
Tags: , ,

04: 5 JAXB interview Questions & Answers

JAXB interview Questions & Answers Links: 6 Java RESTful Web services Interview | 11 SOAP Web service interview | Java Web Services interview Questions & Answers Q1. What does JAXB stand for? What is an XML Binding? A1. JAXB means Java API for Xml Binding. XML binding maps an XML…

Read more ...
Tags:

04: 6 popular Java multithreading interview Q&As for the experienced

Q1. Why do threads need to communicate with each other? A1. Inter thread communication is very similar to inter process communication where 2 or more processes communicate with other, the only difference being that inter thread communication happens within the same process (i.e. within the same memory model). Inter thread…

Read more ...
Tags: ,

05: 9 Java multithreading Q&As on concepts like blocking, sequencing, preempting, time slicing & daemon threads

Java multithreading Q&As on concepts like blocking, and debugging blocked threads. How do you sequence threads? what do you understand by the term preemptive scheduling? Q1. What are the different ways a Java thread gets blocked or suspended? How will you debug Java threading issues? A1. 1. It has been…

Read more ...
Tags: ,

09: 11 SOAP Web service interview Q&As

SOAP Web Services interview Questions & Answers Links: 6 Java RESTful Web services Interview | 5 JAXB interview Questions & Answers | Java Web Services interview Questions & Answers Q1. What are the different approaches to developing a SOAP based Web service? A1. There are 2 approaches. 1) The contract-first…

Read more ...
Tags: ,

12 FAQ JDBC interview Q&As

Q1. What are JDBC Statements? What are different types of statements? How can you create them? A1. A statement object is responsible for sending the SQL statements to the Database. Statement objects are created from the connection object and then executed.

Read more ...
Tags: ,

12 UML interview Q&As

Q1. What are the different types of UML diagrams? A1. Use case diagrams, Class diagrams, Package diagrams, Object diagrams, Sequence diagrams, Collaboration diagrams, and State chart diagrams. Q2. What is a use case diagram, and when will you use it? A2. Depicts the typical interaction between external users (i.e. actors)…

Read more ...
Tags: ,

17 Java getting started interview questions and answers

These 17 beginner Java interview questions & answers are not only for the entry level job interviews, but also get a good grasp of the beginner level Java concepts.

Q1. Why use Java?
A1. Java is a very popular language as per the TIOBE index. Java is a mainstream programming language like C, C++, C#, and Python.… Read more ...

Tags: , ,

17 XML basics interview Q&As

Q1. What is an XML? A1. XML stands for eXtensible Markup Language. XML is a grammatical system for constructing custom markup languages for describing business data, mathematical data, chemical data etc. XML loosely couples disparate applications or systems utilizing JMS, Web services etc. XML uses the same building blocks that…

Read more ...
Tags:

4 JSF interview Q&As

Q1. What are the 6 key phases of JSF? What other frameworks would you use with JSF, and in which phases do they fit in? A1. JavaServer Faces (JSF) brings a new paradigm to developing Web-based applications in Java. However, it has a number of gaps in its out-of-the-box state….

Read more ...
Tags:

1 2

500+ Java Interview FAQs

Java & Big Data Tutorials

Top