What is ioexception in java?
No Answer is Posted For this Question
Be the First to Post Answer
Which is best framework in java?
What is flatmap java?
What is exe file in java?
What's the difference between code-based security and role-based security? Which one is better? : java security
What is the difference between deep copy and shallow copy in java
What is a flatmap?
What is the need to declare main() method as static in Java?
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 resultsetmetadata in java?
I am trying to create a new universal user group. Why can't i? : java security
Why is struts used in java?
1.can i use super keyword in normal class(not inheritance) to call any method?if so how can i call particular variable? 2.In the inheritance how can i access the particular variable from the base class(it containing 5 variables) using super keyword?