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

class level annotation vs type-level annotation

 
Himai Minh
Ranch Hand
Posts: 1398
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between class-level annotation and type-level annotation?
I think they are the same.
But in EPractice Lab's mock 3:
Type level , method level and field level annotations can all be overridden by the deployment descriptor. Class-level annotations like @Stateless... cannot be overridden.


I think type-level and class-level annotations mean the same thing. Some of them can be overridden by the deployment descriptor, but some cannot.
 
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!