What is the difference between deep copy and shallow copy in java
No Answer is Posted For this Question
Be the First to Post Answer
What is default constructor in java?
Is java built on c?
Sytem.out.println(" "); this code what mean
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 type_scroll_insensitive in java?
Which method is used to create the daemon thread?
Expain ur organisation process( V-model)?.
Why sun introduce concept of anonymous class? What is need and real life use of anonymous class
What do you understand by casting in java language? What are the types of casting?
Explain the reason for each keyword of public static void main(string args[])?
What is the content of the Java 2 security policy file?
How the java is platform independent?