Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
快速、琐碎的Java问题:围绕SQLException的括号_Java_Parentheses - Fatal编程技术网

快速、琐碎的Java问题:围绕SQLException的括号

快速、琐碎的Java问题:围绕SQLException的括号,java,parentheses,Java,Parentheses,带括号的sqle的作用是什么?有什么事吗 只是好奇而已。快速回复-没什么 更长的回答-可能是内联演员阵容的残余: try { ... } catch (SQLException sqle) { String theError = (sqle).getSQLState(); ... } 快速回复-没什么 更长的回答-可能是内联演员阵容的残余: try { ... } catch (SQLException sqle) {

带括号的sqle的作用是什么?有什么事吗

只是好奇而已。

快速回复-没什么

更长的回答-可能是内联演员阵容的残余:

  try {
      ...
  }  catch (SQLException sqle) {
      String theError = (sqle).getSQLState();
      ...
  }
快速回复-没什么

更长的回答-可能是内联演员阵容的残余:

  try {
      ...
  }  catch (SQLException sqle) {
      String theError = (sqle).getSQLState();
      ...
  }