I've used once a GSON library in Eclipse and it was very easy. Just added it as external library and in source file I've imported it and was able to use it just like any other class in Java. Example:
Gson gson = new Gson(); //and just use it
Recently I had to work with SQLIte
database file, so I've downloaded JDBC driver library and added it in my Eclipse project.
But I've noticed that there is kind of strange (at least for me) syntax for using it.
I've imported java.sql.*
but to be able to use its classes I had to do the following:
Class.forName("org.sqlite.JDBC");
I know that the return value from this command is Class object (during runtime) but as you can see from the syntax it is never used.
Please explain whats going on there and why I can't just use SQL package classes without invoking Class.forName
first.