-1

I am running java application and because of some error it gets closed, I want to check the error in log. How can I reopen java console with that log or is there any other way to check the log of java console.?

Riddhi Makwana
  • 29
  • 1
  • 1
  • 5

2 Answers2

1

Try printing something on the console.
Eg:System.out.println("Program Completed").

Abhishek
  • 111
  • 1
  • 3
  • 15
1

Put your code in try catch block, and print your exception in catch block.

P Punam
  • 151
  • 1
  • 8