Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

primitive data types in RMI / EJB

 
Suresh Kumar
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In RMI/EJB, generally, any object that implements Serializable interface be used as arguments / return types in a method.

Can the primitive data types(int,short,float,etc) be used as arguments / return types in a method in RMI as well as in business methods of EJB ?

Thanks in Advance.

Thanks

Suresh
 
suekar meredilko
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YES.
 
Rafael Tabosa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
primitive types are serializable, then may be used.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!