View Source

h1.Code Samples

[Code Samples|http://wikis.sun.com/display/code/About+Code+Samples] is a collection of code snippets exemplifying the Java programming language and other languages. Example code comes from various published documents on java.sun.com, and are also provided by the developer community. Use Code Samples for your own programming, and add your own examples to this collection.


Before adding code to this wiki, see the [About Code Samples] page for more information about this Code Samples wiki, how to add to it, and some general guidelines to follow.

h3.Categories in Code Samples

* [#Java Platform, Standard Edition (Java SE)]
* [#Java Platform, Enterprise Edition, (Java EE)]
* [#JavaFX Platform]
* [#Java Platform, Micro Edition, (Java ME)]
* [#Java Card - Smart Card Technology]
* [#Database Technologies]
* [#Scripting Languages]
* [#Cross-Platform Technologies]


h5.Java Platform, Standard Edition (Java SE)

* [Language Syntax]
* [Numbers and Math Operations]
* [Life Cycle of an Object]
* [Reading and Writing Data]
* [Classes and Inheritance]
* [Reflection]
* [Threaded Programs]
* [Swing and GUI Programming]
* [Multi-Media]
* [Error Handling]
* [Internationalization]



h5.Java Platform, Enterprise Edition, (Java EE)

* [Java EE Samples and Apps|http://java.sun.com/javaee/reference/code/].

* [Specific Java EE Technologies]
* [Auction Application Code Samples|http://java.sun.com/developer/onlineTraining/Programming/JDCBook/Code/Auction.zip] from [Advanced Programming for the Java 2 Platform|http://java.sun.com/developer/onlineTraining/Programming/JDCBook/].
* [Java BluePrints|http://java.sun.com/blueprints/code/index.html].
* [Java EE Connector Architecture]
* [Web Services]

h5.JavaFX Platform

* [JavaFX]

h5.Java Platform, Micro Edition, (Java ME)

* [Code Samples|http://developers.sun.com/mobility/javacard/samples/] from the [Mobility Developer|http://developers.sun.com/mobility/reference/codesamples/] web site.

*MIDP/CLDC*

* You can download [MIDP code samples|http://java.sun.com/docs/books/j2mewireless/examples/README.html] from the Java series book [Programming Wireless Devices with the Java 2 Platform, Micro Edition|http://java.sun.com/docs/books/j2mewireless/index.html].

* [MIDP code samples|http://developers.sun.com/mobility/midp/samples/] from the [Wireless Developer web site|http://developers.sun.com/mobility/].

h5.Java Card - Smart Card Technology

* [Code Samples|http://java.sun.com/docs/books/javacard/] from the Java series book [Java Card Technology for smart cards|http://java.sun.com/docs/books/javacard/].

h5.Database Technologies

The following code samples are used for databases, such as MySQL, and technologies such as JDBC connectivity.

* [Using the MySQL Database]
* [JDBC Technology]

h5.Scripting Languages

* [Scripting within Java]
* [PHP]
* [Python]
* [JRuby]
* [Ruby]
* [Groovy]


h5.Cross-Platform Technologies

* [Internationalization]: Designing an application so it can be adapted to various languages and regions without engineering changes. Localization is the process of adapting software for a specific region or language by adding locale-specific components and translating text.

* [Java BluePrints|http://java.sun.com/blueprints/code/index.html]: Illustrating design patterns and best practices for Java platform-based end-to-end (client-server) solutions.

* [Security]: Signing and verifying signed data, encrypting and decrypting data, and writing a security manager. A security manager is a Java virtual machine (JVM ^1^) object that implements a security policy such as prompting an end user for password verification.

* [NetBeans Sample Catalog|http://www.netbeans.org/kb/samples/]: Browse the NetBeans Sample Catalog for a comprehensive collection of sample applications spanning the latest enterprise, web, mobile, and scripting technologies.

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact