What is a bean class?


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

Post New Answer

More Java Related AllOther Interview Questions

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  


Which is best framework in java?

0 Answers  


What is an action class in java?

0 Answers  


When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?

0 Answers  


how can program polindrome using java

1 Answers  






What do you understand by casting in java language? What are the types of casting?

0 Answers  


What is javacpl?

0 Answers  


What is stateless class in java?

0 Answers  


What are the disadvantages of java sockets?

0 Answers  


What is loose coupling in java?

0 Answers  


What are the advantages of java sockets?

0 Answers  


When a thread is created and started, what is its initial state?

0 Answers  


Categories