Drupal is a PHP-based content management system that uses a MySQL database to store its content and configuration. Drupal is written in PHP, a server-side scripting language commonly used for web development. PHP generates dynamic web pages, processes data submitted from web forms, and interacts with databases. It also includes a templating system that allows developers to customize the look and feel of their Drupal sites. So, to answer your question, Drupal is written in PHP, not Java.