标签: java parentheses
try { ... } catch (SQLException sqle) { String theError = (sqle).getSQLState(); ... }
带括号的sqle周围有什么作用?什么?
sqle
好奇。
答案 0 :(得分:6)
快速回复 - 没什么。
更长的回复 - 它可能是内联演员的遗留残余:
((SomeMoreSpecificException)sqle).get...