i
CitiusTech
Filter interviews by
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
I applied via Job Fair and was interviewed in Feb 2024. There was 1 interview round.
Java is a backend language, Javascript is a frontend language. Synchronization in Java ensures only one thread can access a resource at a time. JavaScript is single-threaded but can handle asynchronous operations using callbacks, promises, and async/await.
Java is a backend language used for server-side development, while JavaScript is a frontend language used for client-side scripting.
Synchronization in Java is a techn...
A Pojo class is a simple Java class that contains only private fields, public getters and setters, and no-arg constructor.
Create private fields for employee details like name, id, salary, etc.
Generate public getters and setters for each field.
Include a no-arg constructor in the class.
Example: public class Employee { private String name; private int id; public String getName() { return name; } public void setName(String...
To compare two objects with the same class, override the equals and hashCode methods in the class.
Override the equals method to compare the fields of the objects for equality.
Override the hashCode method to generate a unique hash code based on the object's fields.
Ensure that the equals and hashCode methods are consistent with each other.
Example: public class Person { private String name; private int age; }
JPA Repository provides inbuilt methods for common database operations in Spring applications.
JPA Repository provides methods like save(), findById(), findAll(), deleteById(), etc.
These methods help in performing CRUD operations on entities without writing custom queries.
For example, userRepository.save(user) saves a user entity to the database.
I applied via Approached by Company and was interviewed in Feb 2024. There were 3 interview rounds.
Project Architecture, Cloud Items, Load balancing etc.
posted on 1 Mar 2024
I applied via LinkedIn and was interviewed in Jan 2024. There was 1 interview round.
posted on 2 Jun 2024
I applied via Approached by Company and was interviewed in May 2024. There was 1 interview round.
posted on 29 Jun 2024
I applied via Recruitment Consulltant and was interviewed in Dec 2023. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Dec 2022. There were 2 interview rounds.
MVC Lifecycle is the sequence of events that occur in the Model-View-Controller architectural pattern.
MVC stands for Model-View-Controller.
The lifecycle starts with a user request.
The controller receives the request and processes it.
The controller updates the model with the necessary data.
The view is then updated with the updated model data.
The updated view is sent back to the user as a response.
Creating Threads in Java
Extending the Thread class and overriding the run() method
Implementing the Runnable interface and passing it to a Thread constructor
Using Executor framework to create and manage threads
Using Callable and Future interfaces to create threads that return values
HashMap is a data structure that stores key-value pairs. List is a collection of ordered elements.
HashMap allows fast retrieval of values based on keys.
List maintains the order of elements and allows duplicates.
HashMap uses hashing to store and retrieve elements.
List uses indexing to access elements.
HashMap is not thread-safe while List is thread-safe.
Example: HashMap
HashMap is a non-synchronized implementation of Map interface while HashTree is a synchronized implementation of Map interface.
HashMap is faster than HashTree as it is non-synchronized.
HashTree is thread-safe while HashMap is not.
HashMap allows one null key and multiple null values while HashTree does not allow null keys or values.
HashTree maintains the order of elements while HashMap does not.
HashMap is generally used...
The class used to connect with the Database depends on the programming language and framework being used.
In Java, the class used is usually DriverManager or DataSource.
In Python, the class used is usually psycopg2 or mysql-connector.
In PHP, the class used is usually PDO or mysqli.
The specific class used may also depend on the type of database being used, such as MySQL, PostgreSQL, or MongoDB.
Classes needed to create a GET REST API
Controller class to handle the request
Service class to perform business logic
Repository class to interact with database
Model class to define data structure
RequestMapping annotation to map the URL
An interface is a blueprint of a class. Default method is a method in an interface with a default implementation.
An interface defines a set of methods that a class must implement
Default method provides a default implementation for a method in an interface
Default methods were introduced in Java 8
Default methods can be overridden by implementing classes
An interface is used to define a contract between two components in a system.
An interface defines a set of methods that a class must implement.
Interfaces are used to achieve abstraction and loose coupling.
Interfaces are used to create reusable code.
Interfaces are used to enable polymorphism.
Interfaces are used in many programming languages, including Java, C#, and TypeScript.
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are objects of the same class.
It can be achieved through method overloading and method overriding.
Example: A parent class Animal can have multiple child classes like Dog, Cat, and Cow. All these child classes can have their own implementation of the method 'makeSound', which can be ca...
Interview experience
Senior Software Engineer
2.6k
salaries
| ₹5.8 L/yr - ₹20 L/yr |
Technical Lead
2.1k
salaries
| ₹7.3 L/yr - ₹27.4 L/yr |
Software Engineer
1.2k
salaries
| ₹3.3 L/yr - ₹11.2 L/yr |
Technical Lead 1
361
salaries
| ₹7 L/yr - ₹25.4 L/yr |
Technical Lead 2
289
salaries
| ₹8.5 L/yr - ₹28 L/yr |
Accenture
Capgemini
TCS
Wipro