answersLogoWhite

0


Best Answer

Most likely, one of the methods you're calling is throwing an IOException. You either need to declare it to be thrown in the main method or surround the statement with a try-catch block.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why java program is not running without the IOException declaration in main method?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is there a way of doing kickboxing cardio without running?

Yes, kickboxing cardio can be done without running. NatureCast, an online company, advertises a kickboxing program that will improve your cardio health without running.


How were you affected by the Declaration of Independence?

without the declaration we would have no rights, nor a democracy


Is it possible to use floppy disk without using Direct Memory Access?

DMA or Direct Memory Access is the process of getting memory (RAM) without using the CPU. It is turned on based on the program you are running. It is used for things like making sounds while a game is running or for moving data from a floppy and hard drives into RAM. So the program you are running will determine if DMA is used, it does not matter if it is a floppy.


Is it safe to copy external files to a DoD system without running a virus scan as long as the computer where the data is coming from has an antivirus program installed?

no


Is it possible to make a program using for and not with while?

The following cases are all possible:- program without any for and while- program without for- program without while- program with both for and while


I am getting core dump in sun OS for a c plus plus program. But the same program is running without generating any core at a different machine with same sun OS.. what may be the reason for this.?

What OS is the other machine, and what program are you running? I believe Sun uses a different architecture than most other machines, but I can't remember off the top of my head.


What means unilateral Declaration of Independence?

Is declaration of independence made by a dependent state without the assent of the protecting state


What is the difference between interactive use of shell command and running a shell?

In an interactive shell session the shell program waits for the user to type in a command. When receiving a command the shell program will then attempt to locate it and process (execute) the command. You are interacting with the shell. Running a shell file requires a pre-stored series of commands stored in a file. Unless the shell program you are running is interactive then the shell executes each command in sequence, without involving the user at all.


What grievances was declared in the Declaration of Independence?

No taxation without representation.


Which European theory was rejected by the declaration of independence?

Taxation without representation was the European theory that was rejected by the writing of the Declaration of Independence in 1776. The reason for the Revolutionary War was taxation without representation.


What virus hides in an executable program or in a word processing program that contains a macro?

Any virus can inject itself into a running process and hide out in it without your knowledge. Your AntiVirus might catch onto it, but it can't delete a file that it being used by the system.


Can you write a C program Without turbo C IDE?

Yes you can write a C program without using turbo C IDE. All you need is a text editor like notepad where you can write your codes and after writting them save the file with .c extension. But for compilling and running the code you will be needing turbo C IDE.