Fullstack Java Application Developer
Fullstack Java Application Developer Interview Questions and Answers for Freshers
Q1. What is singleton class and its implementation
Singleton class is a class that can only have one instance and provides a global point of access to it.
Singleton class restricts the instantiation of a class to one object.
It provides a way to access its unique instance globally.
Commonly used in scenarios where only one instance of a class is needed, such as database connections or thread pools.
Q2. What is the use of Java
Java is a versatile programming language used for developing a wide range of applications, from web and mobile apps to enterprise systems.
Java is used for developing web applications, mobile applications, desktop applications, and enterprise systems.
It is commonly used in backend development for server-side programming.
Java is also used in game development, scientific applications, and big data processing.
It is platform-independent, meaning Java programs can run on any device...read more
Q3. Find all the pairs with given sum coding
The task is to find all pairs in an array that add up to a given sum.
Iterate through the array and store each element in a hash set.
For each element, check if the difference between the sum and the element exists in the hash set.
If it does, add the pair to the result list.
Q4. how to add dependency
To add a dependency, you need to specify it in the project's build file.
Open the build file (pom.xml for Maven or build.gradle for Gradle)
Add the dependency in the appropriate section
Save the file and run the build command to download and install the dependency
Example:
com.example example-library 1.0.0
Q5. Internal working of hashmap
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to find the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
HashMap allows one null key and multiple null values.
The initial capacity and load factor can be specified when c...read more
Fullstack Java Application Developer Jobs
Interview Questions of Similar Designations
Top Interview Questions for Fullstack Java Application Developer Related Skills
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month