final, finally and finalize in java

Java has lot of keywords which are getting used with specific conditions during coding. Today we will see the most popular keywords.Final Finally Finalize  Final:- It is used in the following cases:If the final keyword is…

Writing Your First Java Program

In previous post we have installed and run the eclipse, now lets write first program.Step1: Launch the Eclipse:Step2: Select the workspace where you want to save the project.Step3: Create Java project:Click on File >…

Download and Run Eclipse

It is always recommended that while writing the code use IDE ( integrated Development Environment) software. it helps you in several ways. it will create complete project for you, it will prompt you on different kinds of errors. it helps…

Java Is Object-Oriented

Object-oriented programming (OOP) is one of the bigger programming buzzwords of recent years, and you can spend years learning all about object-oriented programming methodologies and how they can make your life easier than The Old Way of…

Java Is Platform-Independent

First of all, a platform is anything on which a program is run(in lay man term). A platform is either the machine itself, or a primitive kernel or a fully developed OS. Languages can be platform dependent or independent.Dependent means…

What is Java?

Java is a computer programming language. It enables programmers to write computer instructions using English based commands, instead of having to write in numeric codes. It’s known as a “high-level” language because it can be read and…

Java – Remove Duplicate Number from Array

package JavaPrograms; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set;public class RemoveduplicateArray {// // Remove duplicate entries from an array of long…

Java – Program to Find Prime Number

package JavaPrograms; import java.util.*;public class PrimeNumber { //Note: Scanner class work with JDK1.5 or abovepublic static void main(String args) { int n, i, res; boolean flag=true;System.out.println("Please…