What is a service layer in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is xml file in java?
What is javax annotation generated?
How can I write a program that takes command line input?
What is jndi datasource in java?
What is a controller in java?
What is http session in java?
What services can invoke lambda?
What is entitymanager in jpa?
Is jar an executable?
Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring
public class Dog { private int weight; public int getweight(){ return weight; } public void SetWeight(int newWeight){ if (newWeight > 0){ weight = newWeight; } } } public class TestDog { public static void main(String[] args) { Dog d = new Dog(); System.out.println("Dog d's weight is " + d.getWeight()); d.setWeight(42); System.out.println("Dog d's weight is " + d.getWeight()); d.setweight(-42); System.out.println("Dog d's weight is " + d.getWeight()); } } class dog is compiled but there is an error in class TestDog when compiled and the error is with dot notations. I want to kmow why there is error in testdog class when compiled.
What is jboss in java?