Java hexadecimal base double literal : <p>I am studying for java certification. And i'm curious about the java literals.
I know it is possible to do something like this:</p>

<pre><code>int i = 0xAA;
long l = 0xAAL;
</code></pre>

<p>Also this is possible for floating-point variables:</p>

<pre><code>double d = 123d;
float f = 123f;
</code></pre>

<p>So I logically thought with these examples that the same would apply for hexadecimal.  Just like i can add L for long literals, I could add 'd' or 'f' but the logic is flawed since 'F' and 'D' are valid hexadecimal values.</p>

<p>It is not possible to do something like this:</p>

<pre><code>double d = 0xAAAAAAAAAAAAAAAAAAd;
</code></pre>

<p>Is this just not allowed by Java or there is a simple way to do it that I don't know?</p>
