title: Why can't I throw an exception while using the ternary operator
body: <p>This doesn't compile and gives the following error: <code>Illegal start of expression</code>. Why?</p>
  <pre class="lang-java prettyprint-override"><code>public static AppConfig getInstance() {
      return mConfig != null ? mConfig : (throw new RuntimeException(&quot;error&quot;));
  }
  </code></pre>