Skip to main content

Posts

What are the main uses of the Stream API in Java 8?

  Stream is a feature in Java 8. Stream supporting Internal iteration which will provides several features such as sequential and parallel execution, filtering based on the given criteria, mapping etc. Java 8 Stream support sequential as well as parallel processing, parallel processing can be very helpful in achieving high performance for large collections. All the Java Stream API interfaces and classes are in the  java.util.stream  package. Since we can use primitive data types such as int, long in the collections using auto-boxing and these operations could take a lot of time, there are specific classes for primitive types –  IntStream ,  LongStream  and  DoubleStream. For Example , you might want to create a collection of employees to represent a company's staff information. Then, you might want to process the whole collection to find out how many days that employee works for the company. First , we may iterate over the collections to process some w...

Microservices: Concepts

  The  microservice  architecture is one of the most recent approaches to developing enterprise software applications. The concept of this style of software architecture has been discussed since 2011, and it has been establishing itself quickly.  concept of microservice is like : The microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services, which may be written in different programming languages and use different data storage technologies. Why microservices? "Microservices is a phenomenon of building applications as a collection of multiple independent services which are loosely coupled". It is nothing but decomposing the application into various...

Rest API Interview Question & Answers -Recently asked 2021

  1) Explain what is REST and RESTFUL? REST represents Representational State Transfer; it is a relatively new aspect of writing web API. RESTFUL is referred for web services written by applying REST architectural concept are called RESTful services, it focuses on system resources and how state of resource should be transported over HTTP protocol to different clients written in different language. In RESTFUL web service HTTP methods like GET, POST, PUT and DELETE can be used to perform CRUD operations. 2) Explain the architectural style for creating web API? The architectural style for creating web api are HTTP for client server communication XML/JSON as formatting language Simple URI as the address for the services Stateless communication 3) Mention what tools are required to test your web API? SOAPUI tool for SOAP WS and Firefox "poster" plugin for RESTFUL services. 4) Mention what are the HTTP methods supported by REST? HTTP methods supported by REST are: GET:  It requests...

Best way to learn Angular 8

Before you actually start learning Angular, you need to understand a few concepts such as: Difference between traditional web-applications and single-page applications AngularJS drawbacks What is Angular? To begin with, let me first tell you what is the difference between traditional web-applications and single-page applications? Traditional Web-apps: I’m sure you will remember that in the past, whenever you would request for a web page, the page used to reload entirely in order to load the data as shown in the image above. This model is referred to as  Traditional-W➨eb Application (TWA) . The biggest problem of this was of course time-consumption. To overcomes this problem,  SPA’s or Single-Page Applications model  was introduced.  SPAs  are browser applications that are similar to mobile applications that come with dynamic interactions. They have much lesser refresh rates when compared to  TWA’s . Take a look at the image below that...

What is Java Unit testing, and how do I learn it...

What is Java Unit testing, and how do I learn it... Java Unit testing is when you create small tests to verify that small bits of your code are working as “units.” Typically you write these tests in Java itself. In each test, you might get the system into a certain state, then you interact with the system to exercise the behavior you want to test. You finally verify whether or not the system did what you expected. A primary goal is to reduce the number of defects that you integrate into the rest of the source base. You’ll find numerous tutorial articles if you search. Most people use JUnit, a simple tool that you’ll find in Eclipse or IDEA.

What is Amazon Web Services (AWS)?

 Amazon Web Services Amazon Web Services is a cloud computing platform provided by Amazon. The AWS offers all three service models such as Software as a Service (SaaS), Infrastructure as a Service (IAAS), and Platform as a Service (PaaS). There are more services which comprise the Amazon Web Services including Amazon Elastic Compute Cloud (EC2) which provides virtual servers, Amazon Simple Storage Service (S3) which provides scalable storage for backups, analytics. Then there are other services such as Amazon relational database management system, DynamoDB, AWS Migration hub, and more. AWS provides services in almost every category from mobile development to data analytics. Benefits of using Amazon Web Services: AWS gives access to organizations to use programming models , database and operating system. It provides a cost effective service in which you only have to pay for what you use. Applications can be deployed in multiple regions with just a few clicks. ...

Agile methodology in SDLC

Agile methodology in SDLC Meaning of Agile is 'moving quickly'. This software development methodology is based on iterative and incremental model of software development. There were certain principles on which the agile model was to be based. The most important of the principles is customer satisfaction by giving rapid and continuous delivery of small and useful software. The delivery of the software happens at regular intervals as opposed to after a number of months, which is the case with the waterfall model. There is a lot of scope for cooperation between the business people and the developers, as the requirements keep coming from the business people at regular intervals. There is a lot of emphasis laid on technical excellence and good design of the software. The software development team has to adapt regularly to the changing circumstances. Agile modeling is a methodology, which makes use of practice for modeling and documentation of software based systems. Tr...