Latest :

Author Archives: Writer - MK

Java Interview Questions : For Beginners With Sample Examples

            What is instance actually mean in line “An Object is instance of class.”.? Instance means an example (or an occurrence). So an object is an example of a class. We can understand it as ‘Gandhi’ is an example of the class ‘Human’, similarly ‘Lincoln’ is an example of the class ‘Human’ and ‘Mother Teressa’ is an example of ‘Human’. ...

Read More »

Java Program To Calculate Distance Between Two Points | 3 Ways

Java program to calculate the distance between two points. The code has been written in five different formats using standard values, taking inputs through scanner class, command line arguments, while loop and, do while loop, creating a separate class. If you nay doubts related to the information that we shared do leave a comment here at the end of the ...

Read More »

Java Program Calculate Profit and Loss | Java Programs

Java program to find profit and loss – Here we written simple Java code to find profit & loss along with detailed algorithmic explanation & sample output as well. If you have any queries you can leave a comment. Profit and loss is a concept which is not exclusive to business owners but it is something that everyone is ought ...

Read More »

Java Program To Calculate Average Of N Numbers

Java program to calculate the average of N numbers. Here is the code to calculate the average of N numbers or average of 2 or 3 numbers. The following code has been written in three different ways, using standard values, using do while, recursion, command line arguments, creating a separate class, user-defined method. How to calculate the average of N ...

Read More »

Data Types In Java – With Examples

Data types in Java, primitive types, Java environment variables, Types of variables in java with examples and sample programs. What Are Data Types In Java? [wp_ad_camp_3] Data Types In Java: Before we using a variable, we should specify what type (datatype) of variable it is. Because, when we specify the datatype, the system can understand the memory requirements and the ...

Read More »

Simple Java Program Internet Speed Test | Java Programs

Java program to calculate the internet speed test or connectivity. This is a simple java program to calculate the broadband speed along with detailed explanation. If you have any doubts just do leave a comment here. What  exactly is internet speed? Internet speed also known as bandwidth is the speed in which your data is transferred from your device to ...

Read More »

Miles Per Gallon Java Program | 4 Ways

Java Program To Calculate Miles Per Gallon – In this article, we will detail in on all the possible methods used to calculate miles per gallon in Java. The following source code has been written in multiple ways for easy understand. Suitable examples and sample programs have been included in order to make you understand simply. The methods used in ...

Read More »

Java Program Volume Of Cylinder | 3 simple ways

Java program to find the volume of a cylinder with examples. Here, we shared three to four basic programs about to calculate the volume of a cylinder. If you have any doubts related to this programming then do comment at the end of the post we are glad to help you out – check java program to find the area ...

Read More »

Java Code to Calculate Years Between Two Dates | Java Programs

Java program to find years between two dates – The following java program has been written in along with algorithmic explanation, if you have any doubts regarding that just do leave a comment here. Java Program Calculate Years Between Dates [crayon-662bc21900262824557554/] Output: [crayon-662bc2190026c186975202/] Explanation: To calculate the exact number of years in between two dates, we will require to store ...

Read More »

Java Program to Calculate Income Tax | Java Programs

Java code to calculate income tax for company or for employee –  The following income tax calculator on java has been written in 4 different ways. Suitable examples and sample programs have been included in order to make you understand simply. The methods used in this article are as follows: Using Scanner Class Using a Static Method Using Separate Class ...

Read More »