- 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…
- Javascript Interaction Functions
Alert function The alert() method displays an alert box with a specified message and an OK button. An alert box is often used if you want to make sure information comes through to the user.The alert box takes the focus away from the current window, and forces the browser to read the message. Do not…