Posts

Showing posts from August, 2024

Platform Independent

If a program written on a particular platform can run on other platforms without any recompilation, it is known as a  platform independent  program . Usually larger applications are created by a team of developers. While most of them could be working on the  same operating system  such as Windows, others might be using  different operating systems  like Mac or Linux. In this scenario, we might have a situation where a program written on Windows needs to be executed on Mac OS also.  Since Java is  platform independent , it is not a problem. A program written using Java on Windows will execute  without any recompilation  on any other platform.

Execution of Java programs

Image
  The development, compilation and execution of Java programs is taken care by JDK which contains 2 main components: Development tools and JRE. Let us first discuss about development tools. The development tools consist of Java compiler and Java launcher. Java compiler ( javac.exe ) - It is the primary Java compiler. The compiler accepts Java source code and produces Java bytecode conforming to the Java Virtual Machine Specification (JVMS). Java launcher ( java.exe ) - It helps in launching a Java application during execution. Next, let us discuss about Java Runtime Environment (JRE). The Java Runtime Environment (JRE) contains Java Virtual Machine(JVM) and the Java standard library (Java Class Library). Java Virtual Machine ( JVM ) - It is the virtual machine that enables the computer to run Java programs. Java standard library ( Java Class Library ) - It is a set of dynamically loadable libraries...

Introduction to Java

Image
A  program  is a collection of instructions that performs a specific task when executed by a computer. A program must be written in a   programming language . In this blog, you will learn to write programs using  Java as a programming language . Java is one of the most popular programming languages. Some statistics about Java are given below: Java has been evolving since 1991 with different editions According to the  TIOBE Programming Community  Index, it has been one of the top 5 programming languages for the past several years It is being used by more than 10 million developers worldwide More than 15 billion devices are powered by Java technology More than 125 million Java-based TV devices have been deployed 97% of enterprise desktops run Java The features and strengths of Java have made it suitable for applications throughout the history of the Internet, and it continues to do so even for modern applicati...

Getting Started

Image
Why Programming? Everyone uses computers, mobile phones and many other gadgets in day to day life to access various applications. Different business domains like Education, Banking, E-Commerce, Healthcare, Insurance etc. use computer applications. These applications are built using programming. The knowledge of programming is essential to bring innovation. You need to know how to code to create value with your ideas. What is Programming? Now that we understand why programming, let's see what is programming all about.   Let us assume that a customer wants to order food using an application. In order to do that, the customer can select the food items from the menu and place an order. If the order is placed successfully, the food gets delivered to the customer. To develop such applications, we give instructions to the computing devices (computers, mobile phones, etc.). A set of such instructions is known as a  program  and the act of creating a program is known as ...