spring core exp
A.java package com.jtc.p1; public class A { int a; String msg; //setter injection. public void setA(int a){ //setter injection System.out.println("SetA(int a) setter injection in A class"); this.a=a; } public void setMsg(String msg){ //setter injection. System.out.println("setMsg(String msg) setter injection in B class"); this.msg=msg; } void showA(){ System.out.println("showA() method in A"); System.out.println(a); ...