Systems | Development | Analytics | API | Testing

Java

How to Handle the Clone Not Supported Exception in Java

The CloneNotSupportedException is an exception in Java that is thrown to indicate that the clone() method in class Object was called to clone an object, but that object's class does not implement the Cloneable interface. Applications that override the clone() method can also throw this exception to indicate that an object could not or should not be cloned.

How to Resolve the Instantiation Exception in Java

The InstantiationException is a runtime exception in Java that occurs when an application attempts to create an instance of a class using the Class.newInstance() method, but the specified class object cannot be instantiated. Since the InstantiationException is an unchecked exception, it does not need to be declared in the throws clause of a method or constructor.

How to Fix the Array Index Out Of Bounds Excepiton in Java

The ArrayIndexOutOfBoundsException is a runtime exception in Java that occurs when an array is accessed with an illegal index. The index is either negative or greater than or equal to the size of the array. Since the ArrayIndexOutOfBoundsException is an unchecked exception, it does not need to be declared in the throws clause of a method or constructor.

Java Remote Debugging with IntelliJ

Java is one of the most widely used programming languages because of its principle of “compile once, run anywhere.” Its many syntax constraints, though, mean that writing code in a basic text editor can become tedious. You can use an integrated development environment (IDE) like IntelliJ IDEA to improve your output, with features like compile-time error suggestions and intelligent code completion. One of the most helpful functions of IntelliJ is its debugging capacity.

How Spring Changed Java Application Development

In this Kongcast episode, Josh Long, Spring Developer Advocate at VMware, dives into how Spring changed the way developers build Java applications and introduces you to Spring Native. Check out the transcript and video from our conversation below, and be sure to subscribe to get email alerts for the latest new episodes.

How to Resolve the NoSuchFieldError in Java

The NoSuchFieldError is an error in Java that occurs when a specified field does not exist. It is thrown when an application attempts to access or modify a field of an object or a static field of a class but the object or class no longer contains that field. The NoSuchFieldError only occurs during runtime if the definition of a class has changed incompatibly. Since it is thrown at runtime, it does not need to be declared in the throws clause of a method or constructor.