The best and the easiest way to check if Java is being installed on your system is by using the Command Prompt on Windows or Terminal if you're on Mac OS X or any other Linux/Unix flavor.
macOS / Linux / Unix :Open Terminal and type the following command :
$ java -version
If java is being installed on the system you will get a response with the version details,
$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
$

Mac OS X check java installed version using terminal.png
On Windows: XP/7/Vista/8/10
Open Command Prompt and type the following command,
c:\> java -version
If it is installed you should get the ver details as the response of the command,
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
The other ways to check if Java is installed :
For Windows XP- Click on Start.
- Now Select Control Panel
- Under Control Panel → Add/Remove Programs
- Check in Add/Remove control panel list of softwares installed contains Java with version.

Get Java version.png

Check java installed on Mac OS X.png
- Click on Start
- Now Select Control Panel
- Now Click on Programs and Features
- Check if there is Java version included.
- Goto Control Panel
- Under Control Panel select Programs
- Now Click Programs and Features
- Check if installed Java version is listed.
- Goto System Preferences (you can do a spotlight search to get there)
- Check if you can see Java Icon
- Click on the Java icon
- Click on About button to get the version details
More Posts related to Java,
- Java XML-RPC 3.1.x based web service example
- List of jars required for Struts2 project
- list of jars required for hibernate 4.x.x
- How to create StackOverflow error in java
- Tutorial Java SOAP WebServices JAS-WS with Eclipse J2EE IDE and Tomcat Server Part 1
- import servlet API to eclipse project (javax.servlet cannot be resolved error)
- [Solved] com.sun.xml.ws.transport.http.servlet.WSServletContextListener ClassNotFoundException
- Convert String to int in Java
- JSP Hello World Program Tutorial with Eclipse and Tomcat Server
- SharePoint Open in the client application document opens in browser
- Java: TimeZone List with GMT/UTC Offset
- Struts2 : java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext
- Remove Trailing zeros BigDecimal Java
- [Solution] Java Error Code 1603. Java Update did not complete.
- Maven Eclipse (M2e) No archetypes currently available
- error: file not found: HelloWorld.java
- Exception in thread main java.lang.NoClassDefFoundError: package javaClass
- 7 deadly java.lang.OutOfMemoryError in Java Programming
- How to check if Java main thread is alive
- [Hibernate] The method buildSessionFactory() from the type Configuration is deprecated
- Java XML-RPC java.net.BindException: Address already in use
- Eclipse : The type java.lang.CharSequence cannot be resolved. Indirectly referenced from required .class files
- Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end users experience
- Eclipse : A java Runtime Environment (JRE) or Java Development kit (JDK) must be available
- List of jar files for Jax-ws (SOAP) based Java Web Services
- [Java Threads] Should we extend Thread Class or implement Runnable interface
- Maven Unsupported major.minor version 51.0
- hibernate.cfg.xml Configuration and Mapping xml Example
- How to verify if java is installed on the computer and get version detail
- Unhandled exception type InterruptedException : Java Threads
- XmlRpcException ConnectException connection refused error
- Error: Unable to access jarfile jarFileName.jar file [Windows]
- BeanDefinitionStoreException IOException parsing XML document from class path resource [spring.xml]
- How to serialize-deserialize an object in java
- List of Java Keywords
- Simple Struts 2 Tutorial in eclipse with tomcat 7 server
- Struts 2 Hello World Example in Eclipse
- Your JBoss Application Server 7 is running However you have not yet added any users to be able to access the admin console
- List of Java versions
- Create simple struts2 project using maven commands
- Struts 2 : There is no Action mapped for namespace [/] and action name [form] associated with context path [/proj]
- Error: Can not find the tag library descriptor for
- connection.url property value in hibernate.cfg.xml for mysql
- Unbound classpath container: JRE System Library [JavaSE-1.7]
- Setting Java_Home Environment variable on Windows Operating System
More Posts:
- ADT quit unexpectedly error on Mac OSX Android Eclipse SDK - Android
- Building library Gradle Project Info: Downloading services.gradle.org - Android-Studio
- Turn Off Google Analytics intelligence Alert Emails - Google
- MySQL Error :1006 SQLSTATE: HY000 (ER_CANT_CREATE_DB) Message: Can't create database 'mydb' (errno: 28) - MySQL
- Replace tabs by spaces or comma Notepad++ - NotepadPlusPlus
- PowerShell iterate and get all SharePoint sites and sub sites - SharePoint
- Turn on off volume change button sounds Mac OS X - Mac-OS-X
- Android Lint app_name is not translated in af (Afrikaans) am (Amharic) ar (Arabic) bg (Bulgarian) - Android
- How to Detect Phone Shakes Android Programming - Android
- MySQL : Error :1000 SQLSTATE: HY000 (ER_HASHCHK) Message: hashchk Server Error - MySQL
- How to add border to Android Button - Android
- How to Center Align Image in Bootstrap - CSS
- Recover SharePoint if the SQL Server IP changes - SharePoint
- Google Chrome Update failed (error: 12) - Chrome
- Send Email using SharePoint PowerShell command - SharePoint