What is the use of entity class in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is gpt and gpc? : java security
Is it better to learn java or python?
Is jprofiler open source?
What is the use of servlet in java?
What is the difference between java se and java ee?
Explain different way of using thread?
Is lambda cheaper than ec2?
If one class havent the constructor, it has normal method, then can i use super keyword to call the method form the sub class and vice verse?
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 aop java?
What is dto layer in java?
what are the different phases in delivering the project during development and maintenance?