Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. install-java

Tag: install-java

j
java July 25, 2025 3 min read by mkyong 0 comments

How to Install Java on Windows (Step-by-Step Guide)

Learn how to install Java 21 (Oracle and Temurin) on Windows with screenshots and easy-to-follow instructions.

Read more How to Install Java on Windows (Step-by-Step Guide)
java July 22, 2016 3 min read by mkyong 7 comments

How to install Oracle JDK 8 on CentOS

In this tutorial, we will show you how to install Oracle JDK 8 On CentOS. Environment : CentOS 6.8 Oracle JDK 8u102 Note This guide should work on Fedora and RedHat. 1. Get Oracle JDK 8 1.1 Visit Oracle JDK download page, look for RPM version. 1.2 Copy the download link of jdk-8u102-linux-x64.rpm and wget […]

Read more How to install Oracle JDK 8 on CentOS
design pattern March 18, 2016 5 min read by mkyong 2 comments

Java Builder pattern examples

The Builder Pattern in Java is a creational design pattern that helps in constructing complex objects step by step. Here are three examples of the Builder pattern in Java: 1. Building a User Profile This example models a User with optional fields using the Builder Pattern. User.java package com.mkyong.builder; class User { private final String […]

Read more Java Builder pattern examples
java December 30, 2015 4 min read by mkyong 17 comments

How to Install Oracle JDK 8 On Debian

In this tutorial, we will show you how to install Oracle JDK 8 On Debian, manually. Environment : Debian 7 OpenJDK 1.7 is installed. (Switch to Oracle JDK 8 later) At the time of writing, OpenJDK 1.8 is not included in the default apt-get repository yet. I just don’t like the default apt repository schedule, […]

Read more How to Install Oracle JDK 8 On Debian
j
java June 21, 2010 2 min read by mkyong 32 comments

How to check the installed JDK version on your computer

In the Terminal, we can use `javac -version` to check the installed JDK version and `java -version` to check the installed JRE version.

Read more How to check the installed JDK version on your computer
java May 31, 2010 5 min read by mkyong 23 comments

Java – How to round double / float value to 2 decimal places

We can use DecimalFormat(“0.00”) or BigDecimal to round float / double to 2 decimal places.

Read more Java – How to round double / float value to 2 decimal places

Java and Spring tutorials since 2008. Every example is a complete, runnable file, compiled and run on a real machine before it goes out.

About This Site

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use

© 2026 mkyong.com — Powered by WordPress

RSS