differences between iterator and spliterator in java se 8?
No Answer is Posted For this Question
Be the First to Post Answer
How do I create an executable jar file?
Explain the encapsulation principle.
What is flatmap in rxjs?
how ahstraction is the property of oops,this is also in c and c++ ex. printf function which is also hide the unnecessary data,so what is the difference ? and does c++ fallow the abstraction?
What is java aop?
Which is better openjdk or oracle jdk?
How do I install eclipse?
write a code in jsp to swap two numbers?
How do I run a java project?
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.
explain isalive() method under thread class?
Which is the Best institute to do academic Project in Java? Need information about institutes at Ameerpet, Hyderabad.