Also, check out java tricky code snippets. Some tricky questions to test your programming skills. The issues with the inheritance that make composition a better approach. One of the most asked questions is why java doesn’t support multiple inheritances? Why should we prefer composition over inheritance? This article provides a detailed explanation of multiple inheritances.
Why Java Doesn’t support multiple inheritance and Composition vs Inheritance I also recommend to read java abstract class and interface in java tutorials.
The post also explains how to use abstract class and interface to create a flexible design. When should we use interface over the abstract class and vice versa? This post provides all the differences between abstract class and interface. It’s a great design question and asked a lot in java interviews. But, what is the difference between them? When should we use interface over the abstract class and vice versa? Difference between Abstract Class and InterfaceĪbstract classes and interfaces are used in java for defining the contract. You will learn how and when we should write our own classloaders with example programs. This article provides a detailed explanation of different types of Java classloaders. Java ClassLoader comes under advanced java concepts. A post dedicated to explain these and list out their differences. You should know about the Java virtual machine, runtime environment, and Java compiler. Here you will go through a list of 15 questions related to Exception Handling in Java. I have seen so many guys who are confused in checked, unchecked, and runtime exceptions. There are Exception, Error, and Throwable at the root of Exception Handling. Java provides a robust and object-oriented approach for exception handling. Java Exception Handling Interview QuestionsĮxception Handling is one of the tricky areas.
I also recommend you to read Java Thread Tutorial to gain good knowledge on Threads. This article will help you in preparing for the interview related to these APIs. Some of them are Lambdas, Functional interfaces, Streams, and Date Time API. Java 8 was a major release with many new features. This article lists the most important core java interview questions with answers. A strong grip on Core Java is a must to clear the Java interview for experienced as well as beginners. Core Java Interview Questions and AnswersĬore Java is the starting point of any Java interview. So you can expect Java 13 release in September 2019. Now, Oracle releases a new java version every 6 months. Java 12 is the latest version, released on March 19, 2019. The first public version was released in 1996. Java was first created by James Gosling at Sun Microsystems. It’s because most of the popular APIs in these areas are Python-based.
There are tons of free open source resources available to help you in Java programming. It’s still the first choice for enterprise applications. Java is still one of the most popular programming languages. But, Servlet/JSP is part of Java Enterprise Edition. For example, the Collections framework is part of Core Java. It is the set of libraries that are part of standard java installation.