Hi! Can anyone expalain difference between .sqlj and .java files?
Best regards!
Hi! Can anyone expalain difference between .sqlj and .java files?
Best regards!
Wikipedia explains this.
A .java
file is a normal Java source code file. An .sqlj
file is a Java source code file with embedded SQL statements. You have to pass .sqlj
source files through a preprocessor to make normal .java
files from them, which you can then compile with a standard Java compiler.
From the wikipedia article:
Whereas JDBC provides an API, SQLJ consists of a language extension. Thus programs containing SQLJ must be run through a preprocessor (the SQLJ translator) before they can be compiled.