Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8222075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:09:10+00:00 2026-06-07T14:09:10+00:00

This is probably a very naive question. I used to believe that a Throwable

  • 0

This is probably a very naive question.

I used to believe that a Throwable in Java always contains the stack trace. Is it correct?

Now it looks like that I catch exceptions without the stack trace. Does it make sense? Is it possible to catch an exception without the stack trace?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:09:12+00:00Added an answer on June 7, 2026 at 2:09 pm

    It’s possible to catch a Throwable object in Java without a stack trace:

    Throwable(String message, Throwable cause, boolean enableSuppression,boolean writableStackTrace) 
    

    Constructs a new throwable with the
    specified detail message, cause, suppression enabled or disabled, and
    writable stack trace enabled or disabled.

    public Throwable fillInStackTrace()
    

    Fills in the execution stack trace. This method records within this
    Throwable object information about the current state of the stack
    frames for the current thread.

    If the stack trace of this Throwable is not writable, calling this
    method has no effect
    .

    http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This probably comes across as a very naive question, and I am absolutely assuming
This is probably a very naive Emacs question - I'm new to it. When
This is probably a very basic question. I have some objects that I want
This is probably a very simple question, I apologise - I'm new to rails.
This is probably a very simple question so please forgive my ignorance, but can
This is probably a very basic question about AD FS 2.0 claim rule design
This is probably a very simple question but I'm a little confused how this
This is probably a very simple Object Oriented Programming question. What I am trying
This is probably a very silly question. I am trying to do a geolocation
Probably a very naive question: I have a list: color = [red,blue,red,green,blue] Now, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.