Skip to main content

Posts

NeedOfWebservice Usecase

à Need Of Distibuted Tech UseCase: à Credicard issuing and bill generation process: -Assume after issueing the the credit cards bill generation will be at 2-dates either at 10nth or 22 nd irrespective of the payment date by the customer. -Assume there are 1-million credit card customers are there for a bank. If the bank wants to generate the bill for all the customers at 12 A.M of each and every term/cycle of the month. -Assume for one customer bill generation time will be 1-sec. For 1-mmilon customers = 1-million sec i.e approximately 278 hours = 12 days. Which is time taking process due to which another cycle/term will come due to this there is a sevieor loss for bank. Hence inorder to coplete the bill generation before specified time we need to go for distributed tech, which makes the bill generation much faster. -Hence distribute the task among multiple 15-resources by dividing into multiple independent tasks we can complete this bill generation with in 8-hors of ...

Web Service

A Web Service can be defined by following ways: ============================================= -> A web service is a client server application or application component for communication. -> It is method of communication between two devices over network. -> It is a software system for interoperable machine to machine communication. -> It is a collection of standards or protocols for exchanging information between two devices or application. -> For example, java application can interact with Java, .Net and PHP applications.      So web service is a language independent way of communication. Types of Web Services ============================== -> There are mainly two types of web services. 1. SOAP web services. 2. RESTful web services.

SpringIOC

Spring IOC Container ======================================== -> The Spring container is at the core of the Spring Framework. -> The container will create the objects, wire them together, configure them and manage their complete lifecycle from creation till destruction. -> IOC Container that contains beans and their configurations to develop mutiple types of applications. Such as standard applications, web applications,     and enterprise applications. -> IOC Container says that you don't bother about object creation or you don't create your objects only describe how they should be created. -> IOC Container also says you don't directly connect your components and services together in code but only describe which services are needed by which components in a configuration file. Benefits of IOC Container: ========================= -> Minimize the amount of code in our application. -> Provides Loose coupling between components in application. ...

OOps

What is oops concept? -> Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. -> It simplifies the software development and maintainance by providing some concepts:     1. Object     2. Class     3. Inheritance     4. Polymorphism     5. Abstraction     6. Encapsulation Object: ======= -> Instance of a class is known as an Object whereas instance is nothing but allocating sufficient amount of memory      space for the data members of a class. -> Any entity that has state and behavior is known as an object. -> For example: chair, pen, table, keyboard, bike etc. -> It can be physical and logical. Class: ====== -> The process of binding data-members and associated methods in a single unit is called class. -> Collection of objects is nothing but class. It is logical entity. Inheritance: =========== -> When an objec...

Inheritance Relationship

à 1. Inheritance Mapping Model: à By using this ORM-mapping model we can resolve/solve the " Inheritance Impedance mismatch " problem. à Inheritance is again 2-types 1.   Generalization 2.   Realization 1.   Generalization: Ex: class Payment {   protected String paymentId;   protected String merchant;   protected String amount;   //setter and getters } à Here attributes of the Payment class need not to be protected they may even private also bcz Hibernate can inherit setters and getters. But to follow the convention we are taking protected and protected attributes can be inherited. class CardPayment extends Payment {   private String cardNo;   private String cardType;   private String cvv;   private String expiry;   //setter and getters } à Here CardPayment needs the same attribute of the Payment class hence we should not re-declare the all the attributes so we need to use Inherit...