M.F.M Fazrin
M.F.M Fazrin
Content Posted By
Oct 21, 2019 4 min read

Java Interview FAQ's

Java-Interview-Questions

If you are preparing for a Java-based interview, it’s a good idea to go through Java Interview Questions. I have written a lot of interview questions articles in Core Java, Java EE to popular frameworks.

Java Interview Questions FAQs

Let’s go through some common questions before you read articles that focus on specific areas.

1. Which is the best site for Java Interview Questions?

There are tons of websites where you will find java interview questions. So how do you know which ones you should read?

The answer is simple – read the ones that cover the latest features. Also, read the articles where you can post comments. Most of the times, the author makes some mistakes or confusing statements. Then corrects them through user feedback coming through comments.

2. What are the popular topics for Java Interview?

Some of the popular topics for Java interview are:

  • OOPS Concepts
  • Java String
  • Collections Framework
  • Multithreading
  • Generics
  • Exception Handling
  • Stream API
  • Lambda Expressions
  • Latest Release Features
  • Java EE Frameworks – Spring, Hibernate etc.

3. What is Java used for?

We use Java programming everywhere. We use Java to create standalone programs, web applications, and web services. We can create distributed enterprise applications using Java EE frameworks.

4. What is Core Java?

Java SE is also called Core Java. It is the set of libraries that are part of standard java installation. For example, the Collections framework is part of Core Java. But, Servlet/JSP is part of Java Enterprise Edition.

5. What are the advanced Java Topics?

Some of the advanced java concepts are:

  • Heap and Stack Memory
  • Garbage Collection
  • Reflection API
  • Thread Deadlock
  • Java ClassLoader
  • Java Logging API
  • Internationalization in Java
  • Java Module System

6. Is Java a dying language?

Java is still one of the most popular programming languages. It’s still the first choice for enterprise applications. There are tons of free open source resources available to help you in Java programming. So I am not worried that Java is Dying at all.

7. What is difference between JavaScript and Java?

Some of the key differences between JavaScript and Java are:

  • Java is Object Oriented Programming Language. But, JavaScript is an Object Oriented Scripting language.
  • Java code runs in a virtual machine or browser (Applets) where JavaScript code runs on browser.
  • We have to compile Java source code to byte code before JVM can understand and execute it. JavaScript code is text based and we don’t need to compile it.
  • We use JavaScript to perform browser specific tasks. We use Java to create standalone utility apps, web applications, and web services.
  • JavaScript is lightweight whereas we have to install Java and configure it to run.

8. Which is better – Java or Python?

It’s like comparing Apples to Oranges. Both Java and Python are very popular programming languages. It depends on the project whether you want to use Java or Python or sometimes both together.

Here are some inputs based on my personal experience working with both Java and Python for a long time.

  • We prefer Java over Python to create web services or web applications. Java EE APIs and frameworks are robust and secure. Python frameworks such as Flask and Django are still evolving.
  • We prefer Python over Java to create a utility script because it’s more lightweight than Java.
  • We prefer Python for Data Science, Machine Learning, and Artificial Intelligence applications. It’s because most of the popular APIs in these areas are Python-based.

9. Who Created Java?

Java was first created by James Gosling at Sun Microsystems. The first public version was released in 1996.

10. What is the latest version of Java?

Java 12 is the latest version, released on March 19, 2019. Now, Oracle releases a new java version every 6 months. So you can expect Java 13 release in September 2019.

Core Java is the starting point of any Java interview. A strong grip on Core Java is must to clear the Java interview for experienced as well as beginners. Java 8 Interview Questions

ava 8 was a major release with many new features. Some of them are Lambdas, Functional interfaces, Streams, and Date Time API. This article will help you in preparing for the interview related to these APIs.