Java – Scope of a Variable

What is scope of a variables in Java? Scope refers to the visibility of variables. In other words, a scope is a section of a program, and the scope of variables refers to the section of the program where the variables are visible. Variables are declared and used within that region. Also variable declared within the … Read more

Java – Operator & Expression

Operators are used to perform operations on variables and values or to manipulate them. The operation is performed with two operand and operators to provide what action need to perform. Example: In the above example, 10 and 5 are operands and + is the operation performed between these two operands. Java provides numbers of operation and these … Read more

Java – Operator Precedence and Associativity

What are Precedence and Associativity? Precedence and Associativity are the rules that are used to determine the operators with the highest priority in evaluating an equation that contains different operations. For example: In this example, x is assigned as 20, not 30 that’s because operator * has higher precedence than +, and hence it first gets multiplied … Read more

Java Variables

What is Variable in Java? The variable is the basic unit of storage which holds the value while the program is executed. We can also say that it is a name given to the memory location. A variable is defined by data-types provided by Java. It may be string, int, float, char, and boolean. Declaring a Variable … Read more

Comparison between JDK, JRE and JVM

This post contains the difference between JDK, JRE, and JVM. Let’s understand the difference between them first.JVM: Java Virtual MachineJDK: Java Development KitJRE: Java Runtime Environment Comparison between JDK, JRE, and JVM JDK It stands for Java Development Kit. It is the tool necessary to compile, document and package Java programs. It contains JRE + … Read more

Java – Basic Syntax

The syntax of the Java programming language is the set of rules for writing the java programs and defining its interpretation. Java program is the collection of classes and objects that communicate with each other via. method. It is the program structure. There are certain features that are omitted such as operator overloading or unsigned integer types, also there … Read more

Java Introduction

Java is a popular general-purpose, high level, modern programming language, and computing platform. It is fast, reliable, secure, and dynamic, with the ability to fit the needs of virtually any type of application. It is Platform Independent, which means the user only needs to write a program once and it can be run on a … Read more

Dining Philosophers problem in C

In this article, you will learn about the C program to solve Dining Philosophers problem. The Dining Philosophers Problem: Let there be 5 philosophers (for example) sitting around a round table for dinner. Each philosopher needs two forks to eat but there are only 5 forks (equal to the number of philosophers around the table). … Read more

Round Robin Scheduling in C

This article contains the implementation of the Round Robin Scheduling in C Programming with the explanation, an example, it’s advantages and disadvantages. If we consider large management or organization with multi-users and with a time-sharing system, in such cases response time plays a vital role in the achievements of various objectives. So, Process Scheduling is … Read more

Bit Stuffing Program in C

This post contains the implementation of Bit Stuffing in C programming. Learn about bit-stuffing and with source code for Bit Stuffing in c. What is Bit Stuffing? Bit Stuffing is the technique of insertion of one or more extra bits (0) into data. These are the non–information bits as a way to provide signaling information … Read more