Solved

checked and unchecked exception

Posted on 2014-02-04
6
272 Views
Last Modified: 2014-02-18
Hi,

I am working on below example

http://www.avajava.com/tutorials/lessons/whats-the-difference-between-a-checked-and-an-unchecked-exception.html?page=1


When i try to run this example I am getting compilation error at the CheckeException and UnCheckedException.

How to fix these errors.

Also as given in the link How to see the Hierarchy view (in my eclipse i see call Hierarchy, Data Hierarchy, Tyoe Hierarchy etc none of them dipslay what I want, what is the difference between above Hierarchies) in the eclpse so that i can see Object--->Throwable--->Exception(orRuntimeException to Unchecked)---->CheckedException


please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
  • 3
  • 2
6 Comments
 
LVL 14

Expert Comment

by:CPColin
ID: 39834126
Please paste the compilation error you're seeing.
0
 
LVL 6

Assisted Solution

by:Mahesh Bhutkar
Mahesh Bhutkar earned 200 total points
ID: 39834935
To See the class hierarchy inside eclipse,
Just select the Classname from editor & press ctrl+T.

You can check the views also from eclipse tools menu for seeing the hierarachy.

Please provide exception that you are getting.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39843042

Also as given in the link How to see the Hierarchy view (in my eclipse i see call Hierarchy, Data Hierarchy, Tyoe Hierarchy etc none of them dipslay what I want, what is the difference between above Hierarchies) in the eclpse so that i can see Object--->Throwable--->Exception(orRuntimeException to Unchecked)---->CheckedException

cntrl+T showed a popup to see the Hierarchy. But how to see that in a physical view rather than disappearing pop up? please advise
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 14

Accepted Solution

by:
CPColin earned 300 total points
ID: 39843061
Go to the menu bar and click "Window / Show View / Other." Then expand "Java" and select "Type Hierarchy." Now you can drag things like packages and classes into that view and see their hierarchies.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39857411
I enabled Type Hierarchy.


How do i drag let us say Exception class to see its Hierarchy. I am not able to drag and drop. Please advise with screenshot if possible
0
 
LVL 7

Author Comment

by:gudii9
ID: 39867885
I see i have to enable  "Type Hierarchy." as below

Go to the menu bar and click "Window / Show View / Other." Then expand "Java" and select "Type Hierarchy."

Then i have to go to my java file in eclipse go to the line below

public class Test {

      public static void main(String[] args) throws IOException {


select IOException  and right click and see option Open in Type Hirerachy or F4 and see on the left hand side the expanded hierarchy displayed.
TypeHierarchy2.jpg
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Receive file in Servlet 1 36
endX challenge 2 50
DO we need Java installed on a Windows PC and WHY ? 13 77
eclipse formatting 6 41
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
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.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now