# Hello.java Sample

This topic inludes the source code for the Hello.java Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebServices/localControls/basics/

## Sample Source Code

`01 package localControls.basics; 02 03 import com.bea.control.Control; 04 05 /** 06 * The public interface for the Hello Java control. A control 07 * interface such as this one lists the methods and callbacks that 08 * a Java control exposes. The Hello control has just one method, 09 * sayHello, that returns a greeting as a String. 10 * 11 * This controls implementation -- the code that specifies what it 12 * does -- is contained in HelloImpl.jcs. 13 */ 14 public interface Hello extends Control 15 { 16 17 /** 18 * Test the Hello control using the LocalControlTest web service. 19 */ 20 java.lang.String sayHello(); 21 }`