Doute in Serializable

using Serializable interface to we can serialize the class in java. but,whether is possible to serialize the method in java?
[138 byte] By [MCA134a] at [2007-11-27 1:24:49]
# 1
You would first have to decide what that would mean.Isn't a .class file sufficient?
ejpa at 2007-7-12 0:16:37 > top of Java-index,Core,Core APIs...
# 2
i want to serialize the method not class.. is it possible....?
MCA134a at 2007-7-12 0:16:37 > top of Java-index,Core,Core APIs...
# 3
Yes but what you you mean by serializing a method? Assuming you could send it, what could you do with it when you receive it?
ejpa at 2007-7-12 0:16:37 > top of Java-index,Core,Core APIs...
# 4

you don't serialize classes. classes are already serialized in the form of class bytes. you serialize instances of classes. call me a nit-pick if you want, but it's an important difference, and also leads on to answer your question: no, methods in java are bound to a class, not an instance of a class

the fact that you asked the question leads me to believe you don't quite understand what serialization is, and what we use it for, though. what did you intend to do with a serialized method?

georgemca at 2007-7-12 0:16:37 > top of Java-index,Core,Core APIs...