i
UST
Filter interviews by
Top trending discussions
posted on 9 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Primitive data types are basic data types provided by the programming language, while non-primitive data types are created by the programmer.
Primitive data types include int, float, double, char, boolean, etc.
Non-primitive data types include arrays, classes, interfaces, etc.
Primitive data types store actual values, while non-primitive data types store references to objects.
Access modifiers control the visibility of classes, methods, and variables. Non-access modifiers provide additional functionality.
Access modifiers: public, private, protected, default
Non-access modifiers: static, final, abstract, synchronized
Example: public class MyClass { private int myVar; }
Java 8 features include lambda expressions, functional interfaces, streams, and more.
Lambda expressions allow concise syntax for defining anonymous functions.
Functional interfaces can have only one abstract method and are used for lambda expressions.
Streams provide a way to process collections of objects in a functional style.
Optional class helps to avoid NullPointerException by wrapping a value that may be null.
CICD tools automate the process of building, testing, and deploying code changes.
Popular CICD tools include Jenkins, GitLab CI/CD, CircleCI, and Travis CI
These tools help in automating the software development lifecycle
They enable continuous integration, continuous delivery, and continuous deployment
CICD tools help in improving code quality, reducing manual errors, and increasing development speed
Containerization is a lightweight, portable, and self-sufficient way to package and run applications.
Containerization involves encapsulating an application and its dependencies into a container image.
Containers are isolated from each other and share the host OS kernel.
Popular containerization platforms include Docker and Kubernetes.
Containerization allows for easy deployment and scaling of applications.
Indexing in SQL is a technique used to improve the performance of queries by creating a data structure that allows for faster retrieval of data.
Indexes are created on columns in a database table to speed up the retrieval of rows that match a certain condition in a query.
They work similar to the index in a book, allowing the database to quickly locate the rows that satisfy the query.
Indexes can be created using a single...
Dependency Injection is a design pattern in which components are given their dependencies rather than creating them internally.
Allows for easier testing by providing mock dependencies
Promotes loose coupling between components
Improves code reusability and maintainability
Examples: Constructor injection, Setter injection, Interface injection
In Java, exceptions can be handled using try-catch blocks to catch and handle specific exceptions.
Use try-catch blocks to catch exceptions and handle them gracefully
Use multiple catch blocks to handle different types of exceptions
Use finally block to execute code regardless of whether an exception is thrown or not
Throw custom exceptions using throw keyword
map transforms each element in a stream, while flatMap transforms each element into multiple elements
map applies a function to each element in a stream and returns a new stream of the results
flatMap applies a function that returns a stream for each element in the original stream, then flattens the streams into a single stream
Example: map - stream.map(x -> x * x), flatMap - stream.flatMap(str -> Arrays.stream(str.split(
ConcurrentModificationException occurs when a collection is modified while iterating over it.
Use Iterator to iterate over the collection instead of foreach loop.
If modification is necessary, use Iterator's remove() method instead of collection's remove() method.
Consider using synchronized collections or ConcurrentHashMap to avoid ConcurrentModificationException.
posted on 17 Oct 2024
It was good it was good
OOP (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.
OOP in Java involves creating classes and objects, encapsulation, inheritance, and polymorphism.
Classes are blueprints for objects, defining their properties and behaviors.
Encapsulation involves bundling data (attributes) and methods (functions) that operate on the data within a single unit.
Inher...
Exception handling in Java is a mechanism to handle runtime errors and prevent program crashes.
Exceptions are objects that are thrown at runtime when an error occurs.
Try block is used to enclose the code that might throw an exception.
Catch block is used to handle the exception and provide a specific response.
Finally block is used to execute code regardless of whether an exception is thrown or not.
Example: try { // code...
I applied via Naukri.com and was interviewed in Jul 2024. There were 2 interview rounds.
All question related to core java
An object can be created in Java using new keyword, clone method, newInstance method, and deserialization.
Using new keyword: ClassName obj = new ClassName();
Using clone method: ClassName obj2 = (ClassName) obj1.clone();
Using newInstance method: ClassName obj3 = (ClassName) Class.forName("ClassName").newInstance();
Using deserialization: ObjectInputStream in = new ObjectInputStream(new FileInputStream("file.ser")); Class
All the aptitude questions including verbal, non-verbal, technical and general aptitude.
posted on 16 Aug 2024
Object-oriented programming paradigm focusing on objects and classes for code organization and reusability.
Encapsulation: Bundling data and methods that operate on the data into a single unit (object)
Inheritance: Ability for a class to inherit properties and behavior from another class
Polymorphism: Ability for objects to be treated as instances of their parent class or their own class
Abstraction: Hiding complex impleme...
Java 8 is a major release of the Java programming language with new features like lambda expressions, streams, and functional interfaces.
Introduced lambda expressions for functional programming
Added streams API for processing collections
Included default methods in interfaces for backward compatibility
Introduced new Date and Time API (java.time package)
I applied via LinkedIn and was interviewed in May 2024. There were 2 interview rounds.
Basic questions related to 2d array and string manipulation. 20 aptitude questions and 20+ topic related questions where there. Main focus should be on the coding questions.
based on 1 review
Rating in categories
Software Developer
2k
salaries
| ₹2.5 L/yr - ₹12.1 L/yr |
Senior Software Engineer
1.6k
salaries
| ₹6.5 L/yr - ₹26 L/yr |
Software Engineer
1.3k
salaries
| ₹3.7 L/yr - ₹14.7 L/yr |
System Analyst
1.2k
salaries
| ₹6.5 L/yr - ₹22.2 L/yr |
Senior Software Developer
1.1k
salaries
| ₹5.5 L/yr - ₹20 L/yr |
TCS
Infosys
Wipro
HCLTech