How do I know if I have jre or jdk?
No Answer is Posted For this Question
Be the First to Post Answer
If one class havent the constructor, it has normal method, then can i use super keyword to call the method form the sub class and vice verse?
How can I swap two variables without using a third variable?
What is a service layer in java?
What is a jpa repository?
What is native api in java?
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.
how can we create the ui using netbeans,having the code?
What is an entity in java?
Explain the inheritance principle.
Name primitive java types.
What gives java it’s “write once and run anywhere” nature?
In system.out.println(), what is system, out and println?