Skip to main content

Posts

Showing posts from February, 2023

Angular Interview Questions

 Interview Questions Angular - Javascript binding Framework (Bind view with Model), SPA using Routing, HTTP, DI. Difference between AngularJS and Angular.  Angular JS controller based and Angular is component based  Lazy loading in Angular. Can build bundles. Lazy loading :  Lazy loading is  a technique in Angular that allows you to load JavaScript components asynchronously when a specific route is activated . It improves the speed of the application load time by splitting the application into several bundles.  Directives in Angular 1. Structural (Add or remove element in the DOM) 2. Attribute (it changes the behavior) example hiding a button hide: true 3.Component (customize user control which has its own decorator) Typescript: Adds types to the javascript.(Strongly Typed) It provides the object oriented programming environment Angular CLI - Ready made angular template, Scaffold project Component - Templates - HTML, ngModel, pipes Databindings: how the vie...

Java Springboot Interview preparation

Interview Preparation JAVA Spring boot - Rapid Application Development @Configuration - Makes the class as a source for bean definition for the Application Context. @ComponentScan - Tells spring to look for components, services, configurations Proper Logging in Spring boot Applications spring-boot-starter-logging :  dependency already available spring-logback - is used most of the time Logger levels(error, trace., info..) logging.level.root=TRACE - can be set in application.properties Logger logger = LoggerFactory.getLogger(sample.class) logback-spring.xml  Feature of spring Framework Collection of jars and libraries 1. Lightweight 2. Non-Invasive  3. IOC  4. spring container - (creation of object, maintain the lifecycle and DI) 5. Intercepting the business logic using AOP 6. loosely coupled