coderz.py

Keep Coding Keep Cheering!

Token and keywords

Token The smallest individual unit in a program is known as a token. In fact, every unit that makes a sentence is a token. Java has the following token: Keywords Identifiers Literals Punctuators Operators Keywords Keywords are the words that convey a special meaning to the language compiler. These are reserved for special purposes and […]

April 21, 2022 | Java | No comments

Simple Hello World Program

Requirement for Java Hello World Program: Install the JDK if you don’t have installed it, download the JDK and install it. Set path of the jdk/bin directory.Setting CLASSPATH in Java Create the Java program Compile and run the Java program Hello World Example: Save the above file as Hello.java. In the terminal: To compile: javac Hello.java To […]

April 19, 2022 | Java | No comments

JDK vs JRE vs JVM

Let us now compare Java Virtual Machine, JRE, and JDK. The following are the key distinctions between JDK, JRE, and JVM. Sr. No. Key JDK JRE JVM 1 Definition The Java Development Kit (JDK) is a software development kit for creating Java applications. JDK includes a number of development tools in addition to JRE (compilers, […]

April 19, 2022 | Java | No comments

Java Virtual Machine(JVM)

Programs written in Java are compiled into Java Byte code, which is then interpreted by a special Java Interpreter for a specific platform. Actually, this Java interpreter is known as the Java Virtual Machine(JVM). The machine language for the Java Virtual Machine is called Java byte code. The Java interpreter, when run on any machine, […]

April 17, 2022 | Java | No comments

Byte Code in Java

Byte Code: The Java byte code is a machine instruction for a Java processor chip called Java Virtual Machine. The byte code is independent of the computer system it has to run, i.e, Java programs are compiled, and their byte codes are produced. The byte codes are always the same irrespective of the computer system […]

April 15, 2022 | Java | No comments

Setting CLASSPATH in Java

In Java, you can set the CLASSPATH variable. CLASSPATH: Application ClassLoader uses CLASSPATH as an environment variable to locate and load .class files. The CLASSPATH specifies the location of third-party and user-defined classes that are not extensions or components of the Java platform. When setting the CLASSPATH, make sure to include all directories that contain […]

April 14, 2022 | Java | No comments

Features of JAVA programing language

There were numerous characteristics that contributed to the final form of this outstanding language. The major features of Java programming: Object-Oriented: Everything in Java is an Object. Because it is based on the object model, Java can be easily extended. Simple: Java was created with the goal of being simple to learn. It should be simple to master if you understand the fundamental concepts of OOP Java. Secure: Java’s secure feature enables the creation of virus-free and tamper-proof systems. Public-key encryption is used in authentication techniques. Platform-independent: Unlike many other programming languages, such as C and C++, […]

April 14, 2022 | Java | No comments

What is Java programming language

Introduction to Java programming language In 1995, James Gosling founded Sun Microsystems Inc, which was later acquired by Oracle Corporation. It’s a straightforward programming language. Java makes programming easy to write, compile, and debug. It aids in the development of reusable code and modular programs. Java is a class-based, object-oriented programming language with a focus […]

April 12, 2022 | Java | No comments

Advertisement