Type Here to Get Search Results !

Getting Started with Java Programming and Your First Tools

0
Hi, and welcome to the second article of Open Terminal by CrushOnCuriosity. In this lesson, we're going to continue from where we left off and understand what programming actually means. We'll also take our first step into the world of Java.

So yeah, fasten your seat belts, because we're about to dive in.


Programming, in the simplest terms, is the process of giving instructions to a computer in a language that it understands.


The person who writes these instructions is called a programmer. And I'm pretty sure you're excited to call yourself one too.


As we discussed in the previous article, computers understand only binary (0s and 1s), which is extremely difficult for humans to read and write.


That's why, as programmers, we write our code in higher-level programming languages that are much easier for us to understand.


It is then the job of a compiler to translate our human-readable code into machine language that the computer can execute.


At this point, I think we're fairly comfortable with the basic idea of programming and how everything fits together.


Now it's finally time to begin our journey of learning Java.


To give you a quick introduction, Java was developed in 1991 by Sun Microsystems, under the leadership of James Gosling, who is widely known as the father of Java.


Interestingly, the language was originally called Oak, but the name was later changed to Java.


The language was designed with one primary goal: to be simple, portable, secure, and reliable. Another commonly cited reason for its creation was to overcome several limitations of languages like C and C++.


One of Java's biggest strengths is platform independence, often summarized as "Write Once, Run Anywhere." This means that a Java program can run on different operating systems without requiring major changes.


Java was also one of the earliest languages widely used for developing web applications, and even today, it continues to power everything from enterprise software to Android applications.


Java is an object-oriented programming language, which means you'll be working with concepts like classes and objects throughout your programming journey. Don't worry if these terms sound unfamiliar right now. We'll learn them one by one.


You may also hear people say that Java is both a compiled and an interpreted language. That sounds confusing at first, but the idea is actually quite simple.


When you write a Java program, it is first compiled into an intermediate form called bytecode. This bytecode is then interpreted by the Java Virtual Machine (JVM), which allows the same program to run on different operating systems.


To understand the difference between a compiler and an interpreter, think of it this way:


A compiler reads your entire program and converts it into another form before it is executed. An interpreter, on the other hand, reads and executes the program line by line.


As a beginner, these terms might feel a little overwhelming, and that's perfectly normal. You don't need to master them today. They'll become much clearer as you continue writing programs.


Now, to develop Java applications, you'll come across two important terms: JDK and JRE.


The Java Development Kit (JDK) is a collection of software tools required to develop Java applications. It includes everything you need to write, compile, and run your programs.


The Java Runtime Environment (JRE), on the other hand, is responsible for running Java programs. In simple words, if the JDK is your toolbox for building Java applications, the JRE is what allows those applications to execute.


Since we're mainly targeting the ICSE Class 10 Computer Applications syllabus, it's important for you to understand what these terms mean and what their purpose is.


We've already covered quite a bit, but let's continue for a little longer.


To run Java programs on your computer, you'll need to install the Java Development Kit (JDK) along with an Integrated Development Environment (IDE) of your choice.


I know these tech people come up with some really fancy names.


An IDE is simply a software application that makes writing code much easier. It highlights your code, provides autocomplete, suggests improvements, helps you organize your files, and lets you manage your projects all without leaving the application.


Sounds pretty fancy, right?


But don't worry. You don't need to overcomplicate things.


For ICSE students, BlueJ is the IDE recommended by the board. It's probably the same software you've already seen in your school's computer lab. You can download it from the official BlueJ website just like any other application. Since BlueJ comes bundled with a Java Development Kit, you usually don't have to install anything separately.


For this course, however, I'll mostly be using an online compiler, and I'd recommend that you do the same.


Since all of our projects, at least for now, will be simple command-line applications, we don't really need a full-fledged IDE. These programs are text-based and don't include graphical interfaces like buttons, text boxes, or colorful windows. An online compiler is more than enough for learning the basics.


If you'd still like to install BlueJ on your own computer, you can check out the detailed installation guide available on the website.


Well.. this article turned out to be longer than I expected.


So let's stop here for today.


In the next lesson, we'll install Java and write our very first Java program together.


That wraps up this article.


If you're active on Twitter, make sure to follow me there. If you're not, there's absolutely no need to create a new account just for that, you can always DM me on Instagram instead.


And if you found this article helpful, the biggest favor you can do is share it with your friends. Maybe post it on your Instagram story and tag CrushOnCuriosity or even my personal Instagram account. I'd genuinely love to know how you're learning from this series.


So yeah, that's all for today.


I hope you're having a wonderful day. Thank you so much for reading, and I'll see you in the next one.

Post a Comment

0 Comments