Posts

Cloud Deployment Models

Image
  Cloud Deployment Models

Cloud Service Models

Image
  Cloud Service Models

Identity and Access Management

Image
 Identity and Access Management (IAM)

Nested class in Java

Image
Nested class in Java   Java allows you to define a class inside another class; these are called nested classes. They boost the use of encapsulation and produce more understandable and manageable code by allowing you to logically arrange classes that are only used in one location. A nested class's scope is limited by the enclosing class's scope. As a result, the class NestedClass in the example below does not exist separately from the class OuterClass. The members of the class in which it is nested, including private members, are accessible to a nested class. However, the member of the nested class is not accessible to the enclosing class. A nested class belongs to its encompassing class as well. A nested class may be declared private, public, protected, or package-private (default) as a member of its enclosing class. Nested classes are divided into two categories: static nested class: Nested classes that are declared static are called static nested classes. inner class: An in...

Access Modifiers in Java

Image
Access Modifiers in Java  Access modifiers are crucial Java tools that specify how variables, methods, and even the class itself can be accessed from other areas of the program. Access modifiers in Java regulate which classes, methods, and variables are visible. In summary, these are the four primary types: Public : Reachable from any location inside the project. Private : Only accessible by members of the same class. Protected : Accessible by subclasses and within the same package (even in distinct packages). Default (no modifier) : Also known as package-private, it is only accessible within the same package. Access Modifiers for Java Classes Access modifiers in Java regulate which classes, methods, and variables are visible. In summary, these are the four primary types: public: Any other class in any package can access the class.                ex:  public class MyClass { } default (no modifier): Only members of the same package...

Application Programming Interface (API)

Image
Application Programming Interface (API) What is Application Programming Interface ? Through an API, a program can ask another program for information or actions and get a response without having to understand the underlying workings of the other program. In the example for Application Programming Interface, a restaurant waiter is the best example. The reason for saying this is that the waiter position is similar to API. The waiter receives an order from you, the customer. Your request is communicated to the chef (the server) by the waiter (the API). After processing the request and preparing the food, the chef hands it to the waiter. It is returned to your table by the waiter (answer). In the same way, the API takes the request from the client and sends a request to the server and accordingly the response from the server is sent to the client by APL Why do We need APIs ? Building scalable, adaptable, and networked systems requires APIs. Developers depend on them for the following reaso...