This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes K&B doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "K&B doubt" Watch "K&B doubt" New topic

K&B doubt

Abdul Mohsin
Ranch Hand

Joined: Apr 26, 2007
Posts: 111

In page no 45 2nd para , it is written as
"Finally you need to know that the abstract modifier can never be combined with the static modifier."

But we can apply both abstract and static in the same time in inner classes.

Need your opinion


Abdul Mohsin

Regards, Abdul Mohsin
Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 355

Hello AbdulMohsin,
Please check the para again - its for methods!
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1710
Need to make a class abstract and static:

Suppose you have only static methods in your class, so it is meaningless
to create instance of the class to access the methods. So we can make that
class (nested class of course) abstract. We can extend the nested class
as well access the members of it without need of instance of that class.


Abdul Mohsin
Ranch Hand

Joined: Apr 26, 2007
Posts: 111

Thanks faisal and chandra for prompt reply
I agree. Here's the link:
subject: K&B doubt
It's not a secret anymore!