How to know which java version is installed in linux?

Go to shell and type java -version. It will show the installed version information of java

root@ubuntu:/# java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)

.

Welcome to technical discussion portal

This site is dedicated to all type of questions (Java, J2ee, C++, Data Structure etc) . Solutions are provided by our experts keeping in mind to clear fundamental concepts. Almost every solution is backed up with a good example so as to enable the solution to be grasped easily and quickly.

This site could help beginners in clearing their concepts. And for experienced professionals, it could act as a platform for exploring some unexplored domain or digging complex details of a simple sounding topic.

Post your questions to our Expert Group. We’ll try getting your query answered by our Experts as quickly as possible. In case any query is liked by our experts, we would list your query on our site.

You can also write your interview experiences and your success stories to us. Your feedback will encourage us in providing you with better content.

Technology