Showing posts from June, 2023
Java Interview Questions and Answers This article will help you to prepare for the interview and get much confidence to crack. Here I have tried to put more effort into making the answers much easier with simple explanations. I …
JDK( Java Development Kit) JDK provides an environment to develop Java applications and applets. It is the Java world's main package containing JRE( Java Runtime Environment) that contains JVM(Java Virtual Machine ). …
History of Java Java was developed by James Gosling in the 1990s at Sun Microsystem(Now acquired by Oracle Corporation). He is also known as the father of Java. The first name of Java was Greentalk(with file extension…
Java Java is one of the most popular programming languages. Using Java we can develop Desktop, web and mobile-based applications. Here in this tutorial, you will find details about Java language that will help you to be comfortab…
Problem:- Write a number program to check whether a number is prime or not in Java? Solution:- Let's see 1st what is a prime number. A number that is greater than 1 and divisible by either 1 or itself only is called a Prime n…
Problem:- Write a program to check whether a given number is even or odd using Java? Solution:- As we know if the number is divisible by 2 with remainder 0 is called even else odd number. Example:- If we divide 4 by 2 we will get…