File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes absctract class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "absctract class" Watch "absctract class" New topic

absctract class

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
abstract class abstractclass {

abstract void fgf();



please explain code in bold.Bold block is static method or anonymous class or what is this?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46362
Please use the code button; don't put bold tags inside it.
Where does that code come from, or did you concoct it yourself?
The block you have marked looks like an instance initialiser.
Ryan Beckett
Ranch Hand

Joined: Feb 22, 2009
Posts: 192
The block with only delimiters is a static initializer block.
Henry Wong

Joined: Sep 28, 2004
Posts: 20525

Ryan Beckett wrote:The block with only delimiters is a static initializer block.

Actually, the code in bold is an instance initializer block. (which Campbell already mentioned).


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: absctract class
It's not a secret anymore!