# Java Programming Code Examples

## Java > Threads Code Examples

Multiply a Number by 4 Bitwise Operators -
Program to multiply given number by 4 using bitwise operators. C Program code multiplies given number by 4 using "Bitwise Operators". Bitwise Operators: or, and, xor, not, left shift,

C Calculates Area of an Equilatral Triangle -
An "Equilateral Triangle" has equal sides (all 3 sides are equal). In order to calculate the area of equilateral triangle, we must know the side of the triangle. This C program would prompt

Sizeof Operator & Coma Operator In C++ -
In C++ Language 'sizeof' operator returns the size of the variable or type. Here 'size' means how many bytes of memory is being used by a variable or type. Coma "," Operator is used

Code Find Prime Numbers in given Range -
C Program code Find out the prime numbers between 1 to 100, 100 to 999... Input a range, for e.g. if you want the Prime Numbers from 100 to 999 then enter numbers 100 and 999...

C Program Code to Sort Array of Structure -
Problem to display the highest literate rate and the highest income of a state using array of structures. Firstly accept total number of states so that we can accept all the details...

C Code Demonstration of Tree Operations -
Program demonstration of Tree Operations - insertion, inorder, preorder, postorder. Enter the number of terms you want to add to the tree. Repeated entry error value rejected...

C++ Sample Coding Print Fibonacci Series -
Use the three variable say a, b and c. Place b in a and c in b then place a+b in c to print the value of c to make and print Fibonacci series as shown here in the following C++ program.

C Evaluating Subtraction of Two Matrices -
Before accepting the Elements Check if no of rows and columns of both matrices is equal. Accept the Elements in Matrix 1. Accept the Elements in Matrix 2. Subtraction of two...