What is ioexception in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Java Related AllOther Interview Questions

Which is best framework in java?

0 Answers  


What is flatmap java?

0 Answers  


What is exe file in java?

0 Answers  


What's the difference between code-based security and role-based security? Which one is better? : java security

0 Answers  


What is the difference between deep copy and shallow copy in java

0 Answers   Amazon,






What is a flatmap?

0 Answers  


What is the need to declare main() method as static in Java?

12 Answers  


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.

3 Answers  


What is resultsetmetadata in java?

0 Answers  


I am trying to create a new universal user group. Why can't i? : java security

0 Answers  


Why is struts used in java?

0 Answers  


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?

0 Answers  


Categories