You're going to run your first Java program. And we've added some special features that you'll use as you develop Java programs for this course. It allows you to start programming without having to worry about editor complexities. We choose BlueJ because it's a great programming environment for novices. In these courses, we'll be using a particular environment called BlueJ. So, where do you write this code that will eventually be run by the computer? Programmers write code in programming environments. When you write Java programs, before you run your program you will need to compile it. This process of translating source code held inside classes into bytecode is called compilation. Now, in order for the computer to run my program, my source code must be translated into low level byte code, which is machine readable. Source code is high level code, which is human readable, but not machine readable, so when I open this Java class here, I can read the Java program one of my fellow instructors wrote in it. The code you write is called, source code. In a Java class, you will write one or more Java methods, instructions for your computer to carry out when you run the program. We'll learn more about objects, and object oriented programming, in the next course. Classes are a way of organizing your programs, and objects are created using classes when your program runs. Java is an object oriented language, this means you'll use classes and objects in writing your code. We will also demonstrate how to run programs in BlueJ, the programming environment you will use in this course. In this video we will look at how code is organized is Java, and how programs are executed by the computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |