Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Enclosed instance

Posted on 2007-12-05
3
371 Views
Last Modified: 2008-02-01
What is a "enclosed instance"?

Could some one please give me an example of an "enclosed instance"

I want to use  the following :

  AbstractDocument.AbstractElement myElement = new AbstractDocument.AbstractElement(doc, attrs, start, end);

When I compile my program I get the error as indicated in the error message box above

Thanks

Reg Bray
0
Comment
Question by:racbray
  • 3
3 Comments
 
LVL 26

Expert Comment

by:ksivananth
ID: 20410270
you can't create an instance of abstract class!
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 20410280
also to create an instance of an inner class, you need to have the instance of outer class if the inner class isn't static!
0
 
LVL 26

Accepted Solution

by:
ksivananth earned 250 total points
ID: 20410283
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
simple java question 3 59
nextBoolean(double p) for Random class 3 41
expectj telnet failing 5 45
swing controls 2 15
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question