What is the difference between map and flatmap in java?
No Answer is Posted For this Question
Be the First to Post Answer
Can a method be static and synchronized?
What happens when you omit a brace or misspell one of the words, like public or
In system.out.println(), what is system, out and println?
Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.
What is the difference between deep copy and shallow copy in java
What is the difference between swing and awt components?
What are the Advantages of java se 8 new features?
Where are group policies stored? : java security
How do I install jdk?
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 the means of java?
What's the difference between local, global and universal groups? : java security