O'Reilly logo

Expert Oracle and Java Security: Programming Secure Oracle Database Applications with Java by David Coffin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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(); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required