Class HelloWorld

java.lang.Object
org.h2.samples.HelloWorld

public class HelloWorld extends Object
A very simple class that shows how to load the driver, create a database, create a table, and insert some data.
  • Constructor Details

    • HelloWorld

      public HelloWorld()
  • Method Details

    • main

      public static void main(String... args) throws Exception
      Called when ran from command line.
      Parameters:
      args - ignored
      Throws:
      Exception - on failure