What is java web application?
No Answer is Posted For this Question
Be the First to Post Answer
i have make jar file but when i click in this file then arr swhow "no faund main class" plese help me in this problem becose i want to make a jar file as a dxdcutable file
what are the types of constructer explain with example
What is maven in java?
What is javax annotation generated?
What can open a jar file?
when a program class implements an interface it must provide behavior for..?
Which Institute is good for learning Java technologies?
What is entitymanager in java?
How do I enable jvm?
What is gwt in java?
What's a code group? : java security
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.