I want to persist data of objects for later use. What is the best approach to do so?



I want to persist data of objects for later use. What is the best approach to do so?..

Answer / Anand Tiwari

"In Java, there are several ways to persist data of objects. One common approach is using Serialization/Deserialization (SerializationAPI in java.io package). Another option is using Object-Relational Mapping (ORM) frameworks like Hibernate or JPA for managing relational databases. For non-relational databases, you can use Document-oriented databases like MongoDB or NoSQL databases like Cassandra."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we have any code between try and catch blocks?

1 Answers  


Difference between this() and super() ?

1 Answers  


What is the difference between an interface and an abstract class?

1 Answers   Cyient,


What is the entry point in Java, and how is it written?

2 Answers  


What is the role of the java.rmi.naming class?

1 Answers  


How to change the priority of thread or how to set priority of thread?

1 Answers  


Why wait and notify methods are declared in object class?

1 Answers  


How do you check if an arraylist is not empty?

1 Answers  


Is linkedlist thread safe in java?

1 Answers  


Difference between java and javascript

1 Answers  


explain how many oops concepts available in java with realtime scenarios?

1 Answers   TCS,


Difference difference paint() and paintcomponent()?

1 Answers  


Categories