How do you run an executable jar file?
No Answer is Posted For this Question
Be the First to Post Answer
What is tier in java?
when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution
What are orm tools in java?
What does jpa mean?
What is jpa entitymanager?
Explain about the Physical Data Model?
What is the use of entity class in java?
How do I start netbeans?
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.
How to load a class programmatically?
Why doesn’t the main method throw an error with no arguments?
What is the difference between ec2 and lambda?