Why do we create dto in java?
Answer / Anu Sirohi
DTO (Data Transfer Object) is created in Java to transfer data between processes or layers. It simplifies the communication between different parts of an application by providing a lightweight, self-contained object that only contains the necessary data for transfer, without any business logic.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is jdk a compiler?
Input :14000 Output : hundred and fourteen thousand.(wrong) Desired output : fourteen hundred thousand.
What is explicit casting?
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 are the disadvantages of java sockets?
How do I run a project in netbeans?
Is java a framework?
Which is more secure: java or activex? : java security
Explain the reason for each keyword of public static void main(string args[])?
What is war file in java?
what about jdb and javadoc by example ?
Are streams faster than for loops?