What are the Advantages of java se 8 new features?
No Answer is Posted For this Question
Be the First to Post Answer
Why we need method overriding in JAVA ? I mean which method I have to override I can write that method in my Class.
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.
What are the disadvantages of java sockets?
Why sun introduce concept of anonymous class? What is need and real life use of anonymous class
Which framework is best for rest api java?
What is ui framework in java?
What if I do not provide the string array as the argument to the method?
What is lambda expression in mvc?
How do you run an executable jar file?
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 a jpa repository?
how can program polindrome using java