Java Developer

Java Developer Interview Questions

Updated 17 May 2024

Most Searched Companies

2703 results found

Sort By: 

Popularity

Interview Questions

  • Q1. Interview was conducted on Java covering most important topics like Multithreading,Annotations,SQL,Basics of Java and Spring.

    Add Answer
  • Q2. Bean creation, profile creation, basic spring boot application creation, write controller class, explain microservices, difference btw spring MVC nd spring boot

    Add Answer
  • Q3. Filter price below 200 using streams for a Product with name and pricd

    View answer (1)
  • Q4. What is difference between servlet and jsp

    View answer (2)
  • Q5. Why is String Immutable? What is String Pool? How to create a String which is not stored in String Pool? What is REST Web Service? Life Cycle of a thread? If Rest is Stateless How do you maintain Sessions?

    View answer (12)
  • Q6. what are the difference between abstract class and interface, and throw and throws, and why we use throws?? Why String is Immutable?

    View answer (3)
  • Q7. Basic Java Interview questions. Multi-threading. Springboot. JPA

    Add Answer
  • Q8. Given an array check whether pair exist with given sun

    Add Answer
  • Q9. Basic details about me, then ask for working in shift

    Add Answer
  • Q10. Sort the filtered list in alphabetical order on names

    View answer (1)

+200 interview questions

Interview Questions

  • Q1. 1.What is Singleton in java and create your own singleton class countering all breakable conditions? 2. What is Auto Configuration? 3. @Primary vs @Qualifier 4. What is idempotent? 5. What is class loader? Types of class loader 6. Heap memory and stack memory 7. What is @Configuration and @bean? 8. Why is string immutable in java? 9. Write your own immutable class. 10. How Hashmap works internally? 11. What is Garbage Collector and how it works? 12. Checked vs unchecked exceptions 13. Throw vs Throws 14. What is Aggregation and Composition? 15. I want to add element inside a collection where duplicates won't be allowed and insertion order also be preserved. What should I use? 16. Limit vs Skip 17. Stream vs Parallel stream 18. Lock vs Synchronisation 20. Spring bean scopes 22. Monolithic vs Microservices 23. How Eureka works? 24. Why static and defaults methods are added inside interfaces?

    View answer (1)
  • Q2. what is the difference between string and stringbuffer, difference between throw and throws

    Add Answer
  • Q3. What is Functional Interface? What is Flat Map? What is Method Reference? What is stream API

    Add Answer
  • Q4. Write a functional interface. Refer it to a Lamda Expression. Show it practically while explaining each step

    View answer (1)
  • Q5. What is HashMap? While Interating through it is it mutable?

    View answer (1)
  • Q6. What are the various annotations used in SpringBoot (explain)

    View answer (1)
  • Q7. Java collection use cases Hashmap working principle

    View answer (1)
  • Q8. Java 8 Coding questions, Normal Java String coding question, Spring boot annotations

    Add Answer
  • Q9. Find the duplicate element in a given array using Java 8 features.

    View answer (1)
  • Q10. Write a program to find the missing element from the array.

    View answer (1)

+118 interview questions

Interview Questions

  • Q1. Parent class has run() and walk() . Parent run() - calls walk() Child Class overrides Parent class Inside run() - calls super.run() Walk() - calls super.walk In main class Parent p = new child() p.run() What will be the order of execution?

    View answer (4)
  • Q2. How to sort a list of students on the basis of their First name?

    View answer (6)
  • Q3. 2. What will happen if hashcode only returns a constant? How will it affect the internal working of the HashMap?

    View answer (2)
  • Q4. F2F interview was there. Basic of Multithreading in java. Split array into chunks of given size. Class level and Object level synchronization. Given a nested array and make it into flatten array. {{1}, 2, {3,4}} -> {1,2,3,4} Few basic SQL queries on joins and Group By, Having, Count(), Max() How HashMap Internally Works? What is Hash collusion and how we can avoid this?

    View answer (1)
  • Q5. Suggestion on best way for Java collection to store csv data. and if needed any operation on how to do? there are millions of data need to store in java collection. and some validations on this.

    Add Answer
  • Q6. Write a program to return the length of the longest word from a string whose length is even?

    View answer (4)
  • Q7. Write a SQL Query for having student table Name Subjects Marks Data like- abc Eng 19 abc Phy 17 abc Chem 20 xyz Eng 16 xyz Phy 18 xyz Chem 12 ..... output should be like a list display at the marks board Max marks at the top and min at the last sum is needed of the makes Output should be like this abc 56 xyz 50 mnp 40 klm 30

    Add Answer
  • Q8. If there is a class inside it we have a method - public void synchronized M1() - inside method - Thread.Sleep(500); We create 2 different object of the class and invoke the method. Ob1.M1() Ob2.M1() How the threads will behave , will they perform randomly or one by one?

    View answer (1)
  • Q9. 1. Can we keep an object of a Class as key in HashMap?

    View answer (3)
  • Q10. What is the contract between hashCode and equals method?

    View answer (2)

+38 interview questions

Interview Questions

  • Q1. What is idempotency? Solid ? Design patterns used in projects

    Add Answer
  • Q2. What is Static Method?

    Add Answer
  • Q3. Find second largest number using java 8 features Write a java program to reverse a string few questions about springboot and core java

    Add Answer
  • Q4. Asks about current salary..gets shocked with current CTC. I tell her my expectations, she says you better go with current offers in hand. Why do I had to go through all interview process if you could not provide salary expectations I had given before interview scheduling. Don't interview here. Waste of time.. disgusting experience.

    Add Answer
  • Q5. questions on software, resume based, easy

    Add Answer
  • Q6. How to make class immutable?

    View answer (1)
  • Q7. About java, spring and spring boot

    Add Answer
  • Q8. What is java and python

    View answer (1)
  • Q9. What array list and linkedlist difference,how hashmap internally working,what is synchronised and it's type,what is difference between abstract and interface,class loading mechanism in Java, you hat is single ton class means and how to create, what is ioc in spring,what is dependency injection and it's type, what is autowired and it's type,what dispatcher servlet and its work, what is spring boot advantages, what is actuator,how database configuration in spring boot,what is type of joins and its work,java 8 features

    View answer (1)
  • Q10. LAMDA EXPRESSION?

    Add Answer

+28 interview questions

Interview Questions

  • Q1. Java concepts about oops, solid principles, collections - hashmap, arraylist, static, final keyword, singleton class

    Add Answer
  • Q2. Java 8 features' Spring boot annotation what is Qualifier annotation Diff between comparable and comparator HTTP Methods @Autowire annotation

    View answer (1)
  • Q3. Explain OOPS Concepts in detail with examples

    Add Answer
  • Q4. Write a code to remove duplicate number from list

    View answer (1)
  • Q5. previous project questions, microservices communication

    Add Answer
  • Q6. What is tha difference between object and object reference and object reference variable

    View answer (1)
  • Q7. Spring boot and Spring REST annotations

    Add Answer
  • Q8. workflow in a Spring boot appln

    Add Answer
  • Q9. What are the internal partitions of the java virtual machine .

    View answer (1)
  • Q10. Create a singleton class in Java

    View answer (1)

+69 interview questions

Interview Questions

  • Q1. What is the difference between JDK, JRE, and JVM?

    View answer (1)
  • Q2. What do you understand by Java virtual machine?

    Add Answer
  • Q3. Who is the father of java ?

    View answer (2)
  • Q4. What is JIT compiler?

    Add Answer
  • Q5. How to create method over riding and how to use in Java application.

    View answer (1)
  • Q6. Explain Jdk, jre?

    View answer (1)
  • Q7. Method over ridingi s a wrapper class to mainclass.. is easily understand the topic.

    Add Answer
  • Q8. Oops concepts. Constructor . Inheritance Polymorphism Abstraction Encapsulation Static variables and Static blocks Collections. Multi threade Exception handling These are the questions of interviews

    Add Answer
  • Q9. How Spring container works

    Add Answer
  • Q10. Constructor is a list of special method which has same name and same class called constructor. Constructor is use to initialise the data and initialise the instance variable

    Add Answer

+52 interview questions

Interview Questions

  • Q1. 1)Compare two string using Java 8 features without comparator and comparable 2) Given an array to print non duplicate in the array 3) Solid principles 4) Stereo type annotations 5) how to make list immutable 6) junit questions 7 ) custom annotations 8 ) Java 8 features 9) Trigger in database 10) jboss memory 11) try with resource 12) Hashmap working 13) synchronised vs concurrent hashmap diff

    View answer (1)
  • Q2. Corr java To spring Boot and Sql all theories asked in that interview

    Add Answer
  • Q3. How to output in Java programming

    View answer (1)
  • Q4. Core Java qs Focus on collection frame work

    Add Answer
  • Q5. 7+ Code done in 1 hours

    Add Answer
  • Q6. Core java, java oops thread exception handling cellction framework

    Add Answer
  • Q7. Related to java core like variable, Boolean, string etc.

    Add Answer
  • Q8. Give me any two or three cases and I will solve.

    Add Answer
  • Q9. What is controller advice annotation?

    View answer (1)
  • Q10. Oops thread exception handling cellction framework

    Add Answer

+50 interview questions

Interview Questions

+42 interview questions

Interview Questions

  • Q1. What are new features in Java 8 explain in brief

    View answer (1)
  • Q2. Topics on java8, spring boot, Microservices, MySQL.

    Add Answer
  • Q3. Technical round was based on my resume 40% questions related to my resume what I have mentioned. After that he started asking about my passion and technology apart from resume. I answered I'm really excited about Data analytics bcz data is like fuel for this generation etc...

    Add Answer
  • Q4. Totally based on behavioural round normal discussion and she asked me about relocation I answered I'm comfortable with it.

    Add Answer
  • Q5. Questions related to Spring annotations, HashMap internal working, Design Patterns

    Add Answer
  • Q6. Basic Java and Spring questions

    Add Answer
  • Q7. Basic oops, spring boot, microservices

    Add Answer
  • Q8. As I am fresher I want a good environment to implement my theoretical knowledge to practical.your company also working on Java and I have done multiple projects on Java.

    Add Answer
  • Q9. React lifecycle, screen share coding questions

    Add Answer
  • Q10. Spring boot annotations

    Add Answer

+19 interview questions

Interview Questions

  • Q1. It was almost tough It had basic java questions from following topic - multithreading - oops - jvm, jdk and jre - collection framework - string - array Then they asked questions from advance java - spring framework - servlet and jsp

    Add Answer
  • Q2. What is java? What is oops? Difference between hashmap and hashset

    Add Answer
  • Q3. Can we use try block without catch block?

    View answer (1)
  • Q4. What is collection framework?

    Add Answer
  • Q5. This round is taken by Senior employees working at asite. They asked Basic core Java questions based on oops concept , collection, Threads etc and Some questions I need to explain on paper . They asked about some advanced concepts like JSP and Servlets. I could not answer because I am a fresher . I had a very sound knowledge of core java and i have answered almost 90 percentage questions but i was rejected because I didn't know advanced frameworks like J2EE JSP Springboot.

    Add Answer
  • Q6. Explain encapsulation and it's uses

    Add Answer
  • Q7. 2. How to define Thread in java?

    View answer (1)
  • Q8. they asked me the regarding core java and spring boot . The interviewer didnt ask questions like a Q&A type , he askd me to explain the procedure like brief the things you would do. Eg: how would you write an REST API in sping boot project Exception handling function of Hibernate etc.

    Add Answer
  • Q9. 5. How do you connect database with Java ?

    View answer (1)
  • Q10. 6. What is Checked and Unchecked exception?

    View answer (1)

+7 interview questions