Typical java interview questions sorted by experience
Junior
* Name some of the characteristics of OO programming languages
* What are the access modifiers you know? What does each one do?
* What is the difference between overriding and overloading a method in Java?
* Whatโs the difference between an Interface and an abstract class?
* Can an Interface extend another Interface?
* What does the static word mean in Java?
* Can a static method be overridden in Java?
* What is Polymorphism? What about Inheritance?
* Can a constructor be inherited?
* Do objects get passed by reference or value in Java? Elaborate on that.
* Whatโs the difference between using == and .equals on a string?
* What is the hashCode() and equals() used for?
* What does the interface Serializable do? What about Parcelable in Android?
* Why are Array and ArrayList different? When would you use each?
* Whatโs the difference between an Integer and int?
* What is a ThreadPool? Is it better than using several โsimpleโ threads?
* What the difference between local, instance and class variables?
Mid
* What is reflection?
* What is dependency injection? Can you name a few libraries? (Have you used any?)
* What are strong, soft and weak references in Java?
* What does the keyword synchronized mean?
* Can you have โmemory leaksโ on Java?
* Do you need to set references to null on Java/Android?
* What does it means to say that a String is immutable?
* What are transient and volatile modifiers?
* What is the finalize() method?
* How does the try{} finally{} works?
* What is the difference between instantiation and initialisation of an object?
* When is a static block run?
* Why are Generics are used in Java?
* Can you mention the design patterns you know? Which of those do you normally use?
* Can you mention some types of testing you know?
Senior
* How does Integer.parseInt() works?
* Do you know what is the โdouble check lockingโ problem?
* Do you know the difference between StringBuffer and StringBuilder?
* How is a StringBuilder implemented to avoid the immutable string allocation problem?
* What does Class.forName method do?
* What is Autoboxing and Unboxing?
* Whatโs the difference between an Enumeration and an Iterator?
* What is the difference between fail-fast and fail safe in Java?
* What is PermGen in Java?
* What is a Java priority queue?
* *s performance influenced by using the same number in different types: Int, Double and Float?
* What is the Java Heap?
* What is daemon thread?
* Can a dead thread be restarted?
Source: medium.
Junior
* Name some of the characteristics of OO programming languages
* What are the access modifiers you know? What does each one do?
* What is the difference between overriding and overloading a method in Java?
* Whatโs the difference between an Interface and an abstract class?
* Can an Interface extend another Interface?
* What does the static word mean in Java?
* Can a static method be overridden in Java?
* What is Polymorphism? What about Inheritance?
* Can a constructor be inherited?
* Do objects get passed by reference or value in Java? Elaborate on that.
* Whatโs the difference between using == and .equals on a string?
* What is the hashCode() and equals() used for?
* What does the interface Serializable do? What about Parcelable in Android?
* Why are Array and ArrayList different? When would you use each?
* Whatโs the difference between an Integer and int?
* What is a ThreadPool? Is it better than using several โsimpleโ threads?
* What the difference between local, instance and class variables?
Mid
* What is reflection?
* What is dependency injection? Can you name a few libraries? (Have you used any?)
* What are strong, soft and weak references in Java?
* What does the keyword synchronized mean?
* Can you have โmemory leaksโ on Java?
* Do you need to set references to null on Java/Android?
* What does it means to say that a String is immutable?
* What are transient and volatile modifiers?
* What is the finalize() method?
* How does the try{} finally{} works?
* What is the difference between instantiation and initialisation of an object?
* When is a static block run?
* Why are Generics are used in Java?
* Can you mention the design patterns you know? Which of those do you normally use?
* Can you mention some types of testing you know?
Senior
* How does Integer.parseInt() works?
* Do you know what is the โdouble check lockingโ problem?
* Do you know the difference between StringBuffer and StringBuilder?
* How is a StringBuilder implemented to avoid the immutable string allocation problem?
* What does Class.forName method do?
* What is Autoboxing and Unboxing?
* Whatโs the difference between an Enumeration and an Iterator?
* What is the difference between fail-fast and fail safe in Java?
* What is PermGen in Java?
* What is a Java priority queue?
* *s performance influenced by using the same number in different types: Int, Double and Float?
* What is the Java Heap?
* What is daemon thread?
* Can a dead thread be restarted?
Source: medium.
โค6
๐ Top 10 Java Frameworks You Should Know ๐
Hereโs a quick guide to the most popular Java frameworks every developer should explore:
1๏ธโฃ Spring: A powerful, versatile framework for building web applications and enterprise-level projects.
2๏ธโฃ Hibernate: Simplifies database operations with its ORM (Object Relational Mapping) capabilities.
3๏ธโฃ Struts: Ideal for creating scalable and maintainable enterprise-ready Java web applications.
4๏ธโฃ Google Web Toolkit (GWT): Perfect for creating complex browser-based applications, especially with Java-to-JavaScript compilation.
5๏ธโฃ JavaServer Faces (JSF): Simplifies web app development by connecting UI components to server-side data.
6๏ธโฃ Grails: A Groovy-based framework designed for simplifying Java app development.
7๏ธโฃ Vaadin: Focuses on modern web application development with an appealing UI and seamless integration.
8๏ธโฃ Blade: A lightweight and high-performance framework for building fast REST APIs.
9๏ธโฃ Dropwizard: Combines libraries to quickly create reliable, production-ready applications.
๐ Play: A reactive web application framework that supports both Java and Scala.
๐ก Explore these frameworks to stay ahead in your Java development journey! ๐
#JavaFrameworks
Hereโs a quick guide to the most popular Java frameworks every developer should explore:
1๏ธโฃ Spring: A powerful, versatile framework for building web applications and enterprise-level projects.
2๏ธโฃ Hibernate: Simplifies database operations with its ORM (Object Relational Mapping) capabilities.
3๏ธโฃ Struts: Ideal for creating scalable and maintainable enterprise-ready Java web applications.
4๏ธโฃ Google Web Toolkit (GWT): Perfect for creating complex browser-based applications, especially with Java-to-JavaScript compilation.
5๏ธโฃ JavaServer Faces (JSF): Simplifies web app development by connecting UI components to server-side data.
6๏ธโฃ Grails: A Groovy-based framework designed for simplifying Java app development.
7๏ธโฃ Vaadin: Focuses on modern web application development with an appealing UI and seamless integration.
8๏ธโฃ Blade: A lightweight and high-performance framework for building fast REST APIs.
9๏ธโฃ Dropwizard: Combines libraries to quickly create reliable, production-ready applications.
๐ Play: A reactive web application framework that supports both Java and Scala.
๐ก Explore these frameworks to stay ahead in your Java development journey! ๐
#JavaFrameworks
โค10
5โฃ Free DSA resources to crack coding interview
๐ GeekforGeeks
https://www.geeksforgeeks.org/the-ultimate-beginners-guide-for-dsa/amp/
๐ Leetcode
https://leetcode.com/study-plan/data-structure/
๐ Hackerrank
https://www.hackerrank.com/domains/data-structures
๐ Coding Interview Preparations
https://t.me/crackingthecodinginterview/112
๐ FreeCodeCamp
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/
Join @free4unow_backup for more free courses
ENJOY LEARNING ๐๐
๐ GeekforGeeks
https://www.geeksforgeeks.org/the-ultimate-beginners-guide-for-dsa/amp/
๐ Leetcode
https://leetcode.com/study-plan/data-structure/
๐ Hackerrank
https://www.hackerrank.com/domains/data-structures
๐ Coding Interview Preparations
https://t.me/crackingthecodinginterview/112
๐ FreeCodeCamp
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/
Join @free4unow_backup for more free courses
ENJOY LEARNING ๐๐
โค5๐1
List of Java Project Ideas ๐ก๐จ๐ปโ๐ปโ
Beginner Projects
๐น Calculator
๐น To-Do List App
๐น Number Guessing Game
๐น Password Generator
๐น Flashcard Quizzer
๐น Simple Chatbot
๐น Weather App
๐น Unit Converter
๐น Rock-Paper-Scissors Game
Intermediate Projects
๐ธ Personal Diary
๐ธ Web Scraping Tool
๐ธ Expense Tracker
๐ธ Spring Boot Blog
๐ธ Image Gallery
๐ธ Chat Application
๐ธ Pomodoro Timer
๐ธ Basic Game with JavaFX
Advanced Projects
๐บ Social Media Dashboard
๐บ Machine Learning Model
๐บ Data Visualization Tool
๐บ Blockchain Simulation
๐บ Chatbot with NLP
๐บ File Organizer
Free Java Resources: https://t.me/Java_Programming_Notes
Beginner Projects
๐น Calculator
๐น To-Do List App
๐น Number Guessing Game
๐น Password Generator
๐น Flashcard Quizzer
๐น Simple Chatbot
๐น Weather App
๐น Unit Converter
๐น Rock-Paper-Scissors Game
Intermediate Projects
๐ธ Personal Diary
๐ธ Web Scraping Tool
๐ธ Expense Tracker
๐ธ Spring Boot Blog
๐ธ Image Gallery
๐ธ Chat Application
๐ธ Pomodoro Timer
๐ธ Basic Game with JavaFX
Advanced Projects
๐บ Social Media Dashboard
๐บ Machine Learning Model
๐บ Data Visualization Tool
๐บ Blockchain Simulation
๐บ Chatbot with NLP
๐บ File Organizer
Free Java Resources: https://t.me/Java_Programming_Notes
โค12๐ฅ1๐1