DTO vs VO vs POJO vs JavaBeans

0 votes

What is the difference between DTO, VO, POJO, JavaBeans?

Aug 14, 2018 in Java by v.liyyah
• 1,300 points
1,446 views

1 answer to this question.

0 votes

Data Transfer Object is used for transferring a collection of data across application layers. 

Value Object is an object that contains values that are needed to be transferred between application layers so DTO and VO are almost the same but it is used in different places.

Plain Old Java Object is a simple lightweight Java object which does not need specific container "like web or EJB container" to execute it. 

JavaBean is a class that follows the JavaBeans conventions as defined by Sun:

  1. The class must have a public default constructor.
  2. The class properties must be accessible using get, set, and other methods.
  3. The class should be serializable. 
answered Aug 14, 2018 by code.reaper12
• 3,450 points

Related Questions In Java

0 votes
1 answer

concat() vs “+” operator : In Java for String concatenation

Basically, there are two important differences between ...READ MORE

answered Apr 27, 2018 in Java by Rishabh
• 3,520 points
670 views
0 votes
1 answer

HashMap vs LinkedHashMap vs TreeMap

Hi, there is no as such difference ...READ MORE

answered May 4, 2018 in Java by v.liyyah
• 1,300 points
194 views
0 votes
1 answer

@Component vs @Repository vs @Service in Spring Framework

As you might be knowing, all these ...READ MORE

answered May 29, 2018 in Java by geek.erkami
• 2,320 points
618 views
0 votes
2 answers

C++ performance vs. Java/C#

The overhead of interpreting code is much higher than ...READ MORE

answered Dec 27, 2018 in Java by iangregor
• 300 points
47 views
0 votes
1 answer
0 votes
1 answer

Bean Scopes in Java Spring

According to my knowledge, the Spring Framework ...READ MORE

answered Jul 3, 2018 in Java by geek.erkami
• 2,320 points
65 views
0 votes
1 answer

Bean life cycle in Spring Bean Factory Container

Bean life cycle in Spring Bean Factory ...READ MORE

answered Aug 29, 2018 in Java by code.reaper12
• 3,450 points
292 views
0 votes
2 answers

How can I get the filenames of all files in a folder which may or may not contain duplicates

List<String> results = new ArrayList<String>(); File[] files = ...READ MORE

answered Sep 12, 2018 in Java by Sushmita
• 6,840 points
586 views
0 votes
1 answer

Comparable vs Comparator in Java

I think you are not alone who is ...READ MORE

answered May 10, 2018 in Java by code.reaper12
• 3,450 points
97 views
0 votes
1 answer

Java Timer vs Executor Service

According to Java Concurrency in Practice: Timer is ...READ MORE

answered Jul 26, 2018 in Java by code.reaper12
• 3,450 points
521 views