Why can't bean classes have static or final methods?

  • Thread starter =?ISO-8859-1?Q?Thomas_Gagn=E9?=
  • Start date
?

=?ISO-8859-1?Q?Thomas_Gagn=E9?=

Going through a tutorial and it was stated that beans can't have static
or final methods. Since objects are instances of classes and other
classes we use commonly include static methods (I don't use final
methods but am still interested), why must these features be eliminated
for beans? I'm assuming it has something to do with it being
distributed or only having a proxy for the object.

I read also there would be a problem with casting.

What's the real reason?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top