Using Switch Statements with Strings in Java 1.7Watch

This video tutorial demonstrates how to use the Java switch statement with the String data type, which is new to Java 1.7. In Java 1.5 and 1.6, you would use an enumeration instead. This Java video also shows you how to create an enumeration variable, using it in conjunction with a switch statement as well. Using Java 1.5 and Java 1.6 Enumeration: public class MySwitchTest {     enum … [Read more...]

Apple Store Sandboxing New Apps

sandboxing new apps

Apple is going to begin sandboxing, or implementing a security system, for all new apps submitted after March 1, 2012.  Developers are a little nervous about this new security system because they fear that sandboxing may force them to strip out certain features already existing.  Customers have purchased certain apps for specific functioning, so if the apps have to be stripped, the customers … [Read more...]

Connecting to Apache Derby Database Using JDeveloper

This video tutorial demonstrates how to start the Apache Derby database network connection and to create a Derby database. We also show you how to create a JDeveloper connection to a Derby database. The Derby database is a free database provided by Apache. It has a very small memory and disk footprint. It is not meant for production, but it is great for testing JDBC functionality with Java … [Read more...]

Creating a Java Server Faces Application Using JDeveloper

This JSF tutorial will demonstrate how to create a Java Server Faces application using Oracle JDeveloper. JSF uses MVC (Model-View-Controller) architecture to separate the business logic from the view layer of an application. Java Server Faces, otherwise known as JSF, is a Model-View-Controller framework that allows you to create applications that separate business logic from the view layer. … [Read more...]

Using JSF Managed Beans

Java Server Faces, otherwise known as JSF, is a Model-View-Controller framework that allows you to create applications that separate business logic from the view layer. MVC architecture allows applications greater scalability, since changes in any business logic will not affect what the end user sees. In addition, the view layer can be rendered in several ways. For example, some users might be … [Read more...]

Using the Java ObjectOutputStream class to Serialize an Object

Sometimes you want to take a Java object and persist it, perhaps to a file to be later recreated as an object again. The Java ObjectOutputStream class allows you to do just that. It takes a Java object and flattens it out into a stream of bytes. You can then save it to a file, send it across a network, or do anything you want with it. In this video tutorial we show you how to use the … [Read more...]