JAVA

Bean Scope in Spring

Overview When defining a <bean> you have the option of declaring scope for that bean In this blog we will cover What are different types of Scope available in Spring.. Example for each scope type Types of Scope Scope Description singleton Scopes a single bean definition to a single object Read more…

By Ashish, ago
JAVA

Dependency Injection in Spring without XML

Overview In previous blog we saw Dependency Injection in Spring using Annotation. Here we will see how we can do same using Annotation but without defining Autoscan in xml. We will make use of @Configuration and @Bean to define configuration same as we did for xml in above case. Configuration Read more…

By Ashish, ago
JAVA

Dependency Injection in Spring using XML

Overview In my previous blog we saw an overview of Spring IoC and DI. Here we will see Dependency Injection (DI) in detail by answering following question: What is DI Ways of injecting Dependency using XML Dependency Injection Dependency Injection (DI) is a design pattern that removes the dependency from Read more…

By Ashish, ago
JAVA

Spring – An Overview

Overview Spring is a framework for dependency-injection which is a pattern that allows to build very decoupled systems. The Spring Framework is divided into modules. Applications can choose which modules they need. At the heart are the modules of the core container, including a configuration model and a dependency injection Read more…

By Ashish, ago
JAVA

Reflection in Java

Overview In this blog we will cover following points What is Reflection API. Using private methods Using private fields Sample Code Reflection API Reflection allows instantiation of new objects, invocation of methods, and get/set operations on class variables dynamically at run time without having prior knowledge of its implementation. Real Read more…

By Ashish, ago
JAVA

What is JAX-RS

Overview In this blog we will cover What is JAX-RS JAX-RS┬áSpecification Implementation provider for JAX-RS Why follow JAX-RS What is JAX-RS JAX-RS: Java API for RESTful Web Services (JAX-RS) is a Java programming language API spec that provides support in creating web services according to the Representational State Transfer (REST) Read more…

By Ashish, ago
JAVA

JVM, JDK, and JRE

Overview In this blog we will cover following points What is JVM, JRE & JDK Steps to run a java file JVM (Java Virtual machine) JVM is responsible to converting Byte code to the machine specific code. JVM is also platform dependent and provides core java functions like memory management, Read more…

By Ashish, ago