- Java Interview – String
1. What is String in Java? String is a Class in java and defined in java.lang package. It’s not a primitive data type like int and long. String class represents character Strings. String is used in almost all the Java applications and there are some interesting facts we should know about String.…
- Java interview – Serialization
1. What is Serialization? Serialization is the process of converting an object and its states to a binary stream that can then be saved into a database, cached or sent over the network to another JVM. 2. What is Deserialization? Deserialization is the process of converting back a serialized object.…
- Java interview – Exception
- Java interview – I/O
- Java interview – Concurrency
1. Why is there a need for multi-threading? Multi-threading allows your program to execute logic in parallel. For example: if you are tasked to develop an API endpoint to download a file, read from the database, run calculations, call another API, then this will be an expensive task in terms of…
- Java interview – OOP
1.What is Object-oriented Programming? Object-oriented programming is a programming model or approach where the programs you create are organized around objects rather than logic and functions. The states and behaviors of an object are represented as member variables and methods. This approach is…
- Java Interview – Collection
1. What is a Collection? A Collection is a group of individual objects represented as a single unit. Java provides Collection Framework which defines several classes and interfaces to represent a group of objects as a single unit. 2. Why do we need Collection? Arrays are not dynamic. Once an array…
- Java interview – Fundamentals
1.What modifiers are allowed for methods in an interface? Public: Interface methods are implicitly public, meaning they are accessible from anywhere. Abstract: Interface methods are implicitly abstract, indicating that they do not have an implementation in the interface itself. Default: Starting…