Skip to main content

Posts

Showing posts with the label advance java

UNIX Shell Interview Questions

UNIX Shell 1. How will you remove all files in current directory? Including the files that are two levels down in a subdirectory. In Unix we have rm command to remove files and sub-directories. With rm command we have –r option that stands for recursive. The –r option can delete all files in a directory recursively. It means if we our current directory structure is as follows: My_dir ->Level_1_dir -> Level_1_dir ->Level_2_dir -> Level_1_dir ->Level_2_dir->a.txt With rm –r * command we can delete the file a.txt as well as subdirectories Level_1_dir and Level_2_dir. Command: rm – r * The asterisk (*) is a wild card character that stands for all the files with any name. 2. What is the difference between the –v and –x options in Bash shell scripts? In a BASH Unix shell we can specify the options –v and –x on top of a script as follows: #!/bin/bash -x –v With –x option BASH shell will echo the commands like for, select, case etc. after subst...

Microservices Interview Questions

Microservices Interview Questions 1. What is a Microservice in Java? A Microservice is a small and autonomous piece of code that does one thing very well. It is focused on doing well one specific task in a big system. It is also an autonomous entity that can be designed, developed and deployed independently. Generally, it is implemented as a REST service on HTTP protocol, with technology-agnostic APIs. Ideally, it does not share database with any other service. 2. What are the benefits of Microservices architecture? Microservices provide many benefits. Some of the key benefits are: 1.      Scaling : Since there are multiple Microservices instead of one monolith, it is easier to scale up the service that is being used more. Eg. Let say, you have a Product Lookup service and Product Buy service. The frequency of Product Lookup is much higher than Product Buy service. In this case, you can just scale up the Product Lookup service to run on powerful ha...

Cloud Computing Interview Questions

Cloud Computing 1. What are the benefits of Cloud Computing? There are ten main benefits of Cloud Computing: Flexibility : The businesses that have fluctuating bandwidth demands need the flexibility of Cloud Computing. If you need high bandwidth, you can scale up your cloud capacity. When you do not need high bandwidth, you can just scale down. There is no need to be tied into an inflexible fixed capacity infrastructure. Disaster Recovery : Cloud Computing provides robust backup and recovery solutions that are hosted in cloud. Due to this there is no need to spend extra resources on homegrown disaster recovery. It also saves time in setting up disaster recovery. Automatic Software Updates : Most of the Cloud providers give automatic software updates. This reduces the extra task of installing new software version and always catching up with the latest software installs. Low Capital Expenditure : In Cloud computing the model is Pay as you Go. This means there is very...

Maven based Interview Question

1. What is Maven?          Maven is a software project management tool. It is open source software from Apache software foundation. It is used for building, reporting and documenting a Software project. It is mainly based on POM (Project Object Model). 2. What are the main features of Maven?           Some of the main features of Maven are: Simple : Maven provides simple project setup that is based on best practices. Fast : You can get a new project or module started in a few seconds in Maven. Easy to learn : Maven usage and commands are easy to learn across all projects. Therefore ramp up time for new developers coming onto a project is very less. Dependency management : Maven provides superior dependency management including automatic updates and transitive dependencies. Multiple Projects : You can easily work with multiple projects at the same time by using Maven. Large Library : Maven has a large and growing repositor...