Master java skills

How to refer external JDK in Eclipse/STS

In the Java Build Path screen, select ‘Modulepath’ and click on ‘Add Library’ On the next screen, select JRE System Library as shown below On the next screen, select ‘Alternate JRE’ and click on ‘Installed JRE’ On the next screen, click on ‘Add’ button On the next screen, by default ‘Standard VM’ would come. Let …

How to refer external JDK in Eclipse/STSRead More

How to check and change current java version in your project in eclipse

1 – Expand the java project. It shows the current version of your java project 2 – Let’s assume, we want to update this to java version 1.8 Right click on your project, select ‘Build Path’ and then ‘Configure Build Path’ 3 – Then click on the ‘Libraries’ tab 4 – Then select ‘JRE System …

How to check and change current java version in your project in eclipseRead More

Java Date API

1. Introduction Prior to Java 8, earlier versions relied on the Date and Calendar classes within the java.util package to manage date and time functionalities. But with java 8, LocalDate, LocalTime and other classes from java.time package provide a better way to deal with date and time. Below table list down the differences between date/time …

Java Date APIRead More

Java Calendar API

Introduction Welcome to an in-depth exploration of the Java Calendar API, a powerful toolkit for handling dates and times in Java applications. This comprehensive tutorial aims to provide a thorough understanding of the Java Calendar class and its versatile capabilities. In this tutorial, we will explore essential methods of the Java Calendar class with practical …

Java Calendar APIRead More

How to check java is strictly pass-by-value

Java is strictly pass-by-value. Meaning when we call a method, instead of the actual reference variable, a copy of it is sent to the method. Let’s consider below example You can be ascertain that the original value of variable val is still unaffected. This happens because local variable val in the method manipulateValue is a …

How to check java is strictly pass-by-valueRead More