C# Property Syntax in Java
<p>I've read the questions/answers saying that Java doesn't have nor is it likely to get C# style properties. However, in this question: <a href="http://stackoverflow.com/questions/2850062/how-to-organize-database-access-code-in-android-project">http://stackoverflow.com/questions/2850062/how-to-organize-database-access-code-in-android-project</a>, there is an answer with some sample code like this:</p>

<pre><code>c = localDBRW.rawQuery(sql, selectionArgs);
</code></pre>

<p>In the comments to that answer he says that localDBRW is "defined as a reference to getWritableDatabase()."  To me that means that in the line above getWritableDatabase() is called and rawQuery is called on the result of getWritableDatabase().</p>

<p>So my question is: How is that done?</p>

<p>In C# it would be trivial. I'm new to Java, so I'm not even sure what the terminology is that would lead me to an answer.  Searches on "properties", "methods", and "references" haven't led to this particular usage.</p>

<p><strong>Summary of answers:</strong></p>

<p>I was grasping at a dream.  I was interpreting the original statement in a way that would mean my wishes could come true.  Alas, that is not the way of things.  Java is without any hope of C# property syntax and I am banished to an eternity of writing obj.getX() instead of obj.X.</p>
