AS & A LEVEL COMPUTER SCIENCE 9618
JAVA PROGRAMMING
WHY JAVA
Top 3 most popular programming languages
Extremely flexible (Business Enterprise, Web Apps, Android Apps, Games…)
Easy to find a job as a developer
One of the languages required by Cambridge
3 billion mobile phones run Java. There are currently over 5 billion Java Cards in
use. 125 million TV devices run
TRANSLATING JAVA PROGRAM
Java source code is converted into Byte Code by the Compiler and Byte Code is
converted into Object Code (Machine Code) by Java Virtual Machine(JVM).
Where do we get the JVM, it is always included in the JDK
JDK
Java Development Kit. Contains tools needed to write and interpret Java Source
Code. One of the tools is Java Runtime Environment(JRE), JRE contains libraries
and tools and one of the tools is JVM
1 Davis_Kazibwe@2023KIS
AS & A LEVEL COMPUTER SCIENCE 9618
JAVA PROGRAMMING
SETTING UP JAVA DEVELOPMENT ENVIRONMENT
Installing JDK
Open browser, Java JDK Download and click on Java SE link.
Go to Oracle JDK download, select appropriate version for OS.
Run setup and follow installation steps.
Installing IDE (Eclipse or IntelijIDEA)
Open browser, download Eclipse IDE, click the first link.
Go to download packages, select Eclipse SE for Java Developers.
Select appropriate download for your OS and click Download.
Run setup
Select Workspace and launch
Create project.
Configure JDK for project.
2 Davis_Kazibwe@2023KIS
AS & A LEVEL COMPUTER SCIENCE 9618
INTEGRATED DEVELOPMENT ENVIRONMENT
3 Davis_Kazibwe@2023KIS