File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
jQuery in Action, 3rd edition