Do I really have to type in the programs in the book to try them out?


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

Post New Answer

More Java Related AllOther Interview Questions

Where is singleton design pattern used in java?

0 Answers  


Do I need to install jre if I have jdk?

0 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 lsdou? : java security

0 Answers  


Why oracle type 4 driver is named as oracle thin driver?

0 Answers  






What is java flatmap?

0 Answers  


when a program class implements an interface it must provide behavior for..?

1 Answers  


What is log4j in java?

0 Answers  


Explain the reason for each keyword of public static void main(string args[])?

0 Answers  


What is spliterator in java se 8?

0 Answers  


is hibernate a technology or framework?

4 Answers  


What is loose coupling in java?

0 Answers  


Categories