GeekInterview.com
Series: Subject: Topic:
Question: 26 of 148

how do you save a java object in database

Asked by: Interview Candidate | Asked on: Sep 11th, 2007
Showing Answers 1 - 2 of 2 Answers
jingboliu

Answered On : Sep 24th, 2007

1. Please make sure the java object is serializable
2. Serialize the java object into a file
3. Store the content of the file to relational database as Blob

  
Login to rate this answer.
koti

Answered On : Sep 9th, 2012

u store the object of a class in database. but database is meant for storing the values in the table format. for that reason only sun introduced JNDI for storing the object. by using this concept u can store the object in registry software. with that u can provide the global visibility also

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.