What is ui framework in java?
No Answer is Posted For this Question
Be the First to Post Answer
What are jpa annotations?
What is cookie in java?
What is explicit casting?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. Define how can I implement this logic?
Explain the Sequence Diagram?
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 working of java virtual machine (jvm)?
Write a program using call by refernce for two different classes to explain to print whether a given number is automorphic or not.
Why we need method overriding in JAVA ? I mean which method I have to override I can write that method in my Class.
If you’re overriding the method equals() of an object, which other method you might also consider?
What is servlets.
Input :14000 Output : hundred and fourteen thousand.(wrong) Desired output : fourteen hundred thousand.