Amdocs interview question

Difference between JRE and JDK. How would you compile a program. How would you execute the program. What is relational database. How to speed up search time in a database with 1mil entries.