aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "K&B doubt" Watch "K&B doubt" New topic
Author

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

Regards,

Abdul Mohsin


Regards, Abdul Mohsin
Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 340

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

Joined: Feb 28, 2007
Posts: 1707
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.




Thanks,


cmbhatt
Abdul Mohsin
Ranch Hand

Joined: Apr 26, 2007
Posts: 111

Thanks faisal and chandra for prompt reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: K&B doubt
 
Similar Threads
modifier
Mughal Q4.26
static with abstract
Why abstract modifier cannot combined with static modifier
abstract and strictfp