KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Imagine I have a method like this void myMethod(MyThing t) throws MyException { t.foo = "bar"; if (t.condition()) { throw new MyException(); } } If the exception is triggered, does the value of t.foo revert to whatever it was previously? Or does it keep the "bar" value?
Tags (comma-separated)
Save Edits
Cancel