Home » Java Basics » Page 7

Java Basics

Java in Control Panel of Windows

The Java Control Panel is a multipurpose control panel. It allows you to control how the Java technology runs on your computer. It also allows you to control certificates, making it safe to run applets and applications over the network. Moreover, you can manipulate the files used by the Java Plug-in and Java Web Start. Finally, you can set the ...

Read More »

How to Check Java version in Windows, Linux, MacOS

In this tutorial we will show how to check the Java version in different operating systems, such as Windows, Linux and Macintosh. Depending on your operating system, there are a couple of methods, in order to find the installed Java version. There are methods that apply to all operating systems and methods that apply to each one exclusively. 1. Check ...

Read More »

Java Web Start – Getting Started

In this tutorial, we will introduce you to the concepts of the Java Web Start technology. The Java Web Start software allows you to download and run Java applications from the web. It is included in the Java Runtime Environment (JRE) since release of Java 5.0 and: Provides an easy, one-click activation of applications Guarantees that you are always running ...

Read More »

Java deployment toolkit (JDT) – How to use it

The Java Deployment Toolkit allows developers to easily deploy their applets and applications to a large variety of clients. The Deployment Toolkit script is a set of JavaScript functions that, help developers deploy their rich Internet applications (RIAs) consistently across various browsers and operating system configurations. The script evaluates the underlying browser and operating system, and automatically generates the HTML ...

Read More »

Instanceof Java Example – How to use Instanceof

In this example, we will show how to use the instanceof Java operator. This operator is a Type Comparison Operator and can be used when we want to check if an object is an instance of a specific class, an instance of a subclass, or an instance of a class that implements a particular interface. The instanceof java operator compares ...

Read More »

java.util.concurrentmodificationexception – How to handle Concurrent Modification Exception

The java.util.concurrentmodificationexception is a RuntimeException that may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible. An example of not permissible behavior is when a thread tries to modify the internal structure of a Collection, while another thread is iterating over it. In general, the results of the iteration are undefined. ...

Read More »

java.lang.reflect.invocationtargetexception – How to handle Invocation Target Exception

Reflection is commonly used by programs which require the ability to examine or modify the runtime behavior of applications running in the Java Virtual Machine. The reflection layer wraps any thrown exception as an InvocationTargetException. In this way, it is clear whether the exception was actually caused by a failure in the reflection call, or a failure within the method ...

Read More »

java.lang.arrayindexoutofboundsexception – How to handle Array Index Out Of Bounds Exception

In this post, we feature a comprehensive Example on How to handle Array Index Out Of Bounds Exception. Java supports the creation and manipulation of arrays, as a data structure. A bunch of Java data structures are implemented using arrays to store and expand their data. Thus, arrays are massively used in programming, as they provide a very fast and ...

Read More »

Java offline installer – How to install Java in Linux

In this tutorial we will show you how to install the latest Java version in a Linux machine, using the Java offline installer. The Java offline installer is an executable file that contains all necessary files required for a complete installation. An internet connection is required, in order for the offline installer to be downloaded. Once the installer is downloaded, ...

Read More »

Java offline installer – How to install Java in Windows

In this tutorial we will show you how to install the latest Java version in Windows, using the Java offline installer. The Java offline installer is an executable file that contains all necessary files required for a complete installation. An internet connection is required, in order for the offline installer to be downloaded. Once the installer is downloaded, the computer ...

Read More »