Java Code and Syntax Concepts

I'm going to give a brief example of Java code. It is 20 lines long and not too complex, but it will introduce you to many Java syntax concepts. You do not need to memorize the details of these concepts—they will present themselves in every program you write in Java.

Throughout the following discussion, we are going to consider some aspects of the code in Listing 3-3. Keep a bookmark at this page for reference as you read the next few sections.

Listing 3-3. MyApp2.java

package pkg2; import oracle.sql.ARRAY; import mypkg.MyRef; public class MyApp2 {     private ARRAY myArray = null;     static MyRef myRef;     public static void main( String[] args ) {         MyApp2 m = new MyApp2();         MyRef useRef = new MyRef(); ...

Get Expert Oracle and Java Security: Programming Secure Oracle Database Applications with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.