Java is the language of internet.In other words you can say that it is a language of networks.
As we know that using pointers we can access any important data by pointing through pointers.And in networks & in java security is a preference.So Java does not use pointers.
SQL is Structured Query Language.
It only defines that what data should be fetched and not how it is fetched frm the database.It is said Structured because there is certain Structure of query to fetch data frm database.