In this article let’s learn how to calculate the net salary of an employee by considering the parameters called HRA(House rent allowance),DA(Dearness allowance),GS (Gross salary)and income tax. Let us assume some parameters. HRA=10% of basic salary DA=73% of basic salary GS=basic salary+DA+HRA Income tax=30% of gross salary net salary= GS-income…
Category: Java
Introduction of classes and objects in java.Program to take the input as student name,roll number and display in different class.
Hi guys in this article let’s learn about class.You might be thinking that you use class in every single program but don’t know what is class so let’s start.Hope you’ll enjoy it 🙂 Class is the core of Java.Each every single thing in java is referred as object and class.…
Difference between static and non-static methods in java
In this article let’s learn how static and non-static methods are used in a program.Usually when we want to access class members we create the object of the class and then access through the object as reference.There is another way to do this without creating the object(accessing directly by class…
Java program to find the sum of principal and secondary diagonal elements.
In this article let’s learn how to find the sum of principle diagonal elements and secondary diagonal elements. Principal diagonal elements are those which start at the top leftmost element of matrix and end at the bottom rightmost element of a matrix. Secondary diagonal elements are vice-versa. Eg: If A…
2-Dimensional array in java.
Two dimensional array is nothing but set of many one-dimensional array which is represented in usually rows and columns but they are stored in the continuous memory location. The syntax of the 2-D array is int twoD[][] = new int[4][5]; It allocates 4×5 int elements in an array which internally…
Java program to find the largest and smallest in an array
Hi, guys:) in this article let’s see how to find the largest and smallest number from an array which is taken as input from the user.T o know more about arrays in java click here. Algorithm: 1)Start 2)Take the input size of an array and elements in an array from…
One dimensional array in java
Arrays Arrays are the collection of homogenous elements. In the sense they have same data type. Arrays can be declared as any dimensions.Each element of an array is accessed by it’s index. One dimensional array It is a single list of same data type.The general form of an array is:…
Prime Number Program in Java
 In this post let’s how to find the given number by the user is prime or not. Usually, the prime number is a number which is divisible by one and by itself. Note: 0 and 1 are not prime numbers. The 2 is the only even prime number because all…
Introduction to Java
Introduction to Java. Beginner to java..?? No problem in this article let’s see how to start programmimg in java.Usually when people hear the word “Java” they think it is very difficult, guys trust me java is easier than C programming. Just that java is object oriented programming language.If you know…
Java program to generate pattern
Java program to generate pattern: Hi guys….! In this article let’s learn how to generate a pattern.Usually a pattern is arrangement of symbols or numbers in a systematic order according to the requirement. In this program let’s see how to generate a pattern. Â 1 Â 1 2 Â 1 2 3…
You must be logged in to post a comment.