• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding Serialization  RSS feed

 
Murali Jaya Rao
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

while serialization of an object we will store the object in to a file.this is ok. but while specifying the file path it will store in current folder or temp folder of the system.right?

can anyone please tell me is there any way like writing the object in to the file which will store in the jar.

Thanks & Regards,
Murali.
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Murali Jaya Rao:
specifying the file path it will store in current folder or temp folder of the system.right?

Yes

A relative pathname. . . must be interpreted in terms of information taken from some other pathname. By default the classes in the java.io package always resolve relative pathnames against the current user directory. This directory is named by the system property user.dir, and is typically the directory in which the Java virtual machine was invoked.

java.io.File

Originally posted by Murali Jaya Rao:

can anyone please tell me is there any way like writing the object in to the file which will store in the jar.

No
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!