Java

Java program to compute employee’s net salary,HRA,DA and GS

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 salaryDA=73% of basic salaryGS=basic salary+DA+HRAIncome tax=30% of gross salarynet salary= GS-income tax Algorithm:1)Start2)Take the input from the user as employee name,id […]

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. To understand the concept of […]

Java

2-Dimensional array in java.

Two dimensional array is nothing but set of many one dimensional array which are represented in usually rows and columns but they are stored in continuous memory location.The syntax of 2-D array is

It allocates 4×5 int elements in an array which internally stores 80 bytes of memory(If one int takes 4 bytes of […]

Java

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 the syntax in java you […]