• Post Reply Bookmark Topic Watch Topic
  • New Topic

constant declarations - public final static

 
chandana sapparapu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In chapter 4 of MZ's study guide, he mentions the following-

A Web service endpoint interface must conform to the rules of a JAX-RPC service definition interface:
�It MUST NOT have constant declarations, such as public final static.

What is the logic behind this?

In session beans, is there a requirement that we should not declare constants using public static final? I understand that static final should not be used for ejbCreate or for business methods, but I don't recall a rule against using constants in a bean.

Thanks
 
chandana sapparapu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, I realized it after posting the message, the rule is about the component interface, not the bean.

Anyway, still curious about why we shouldn't use constant declarations in the interface..

Thanks
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!