coderz.py

Keep Coding Keep Cheering!

Remote Method Invocation(RMI) in Java

Remote Method Invocation (RMI) is an API that allows an object to call a method on another object in another address space, which could be on the same machine or another machine. RMI enables remote communication between Java programs and is used to create distributed applications. It is provided in the package java.rmi. RMI Application Architecture: […]

August 31, 2022 | Java | No comments

Java.lang.Class class in Java

Java includes a class called Class in the java.lang package. In a running Java application, instances of the class Class represent classes and interfaces. Class objects also represent the primitive Java types (boolean, byte, char, short, int, long, float, and double), as well as the keyword void. It has no public builder. The Java Virtual […]

August 29, 2022 | Java | No comments

Reflection in Java

Reflection is a runtime API for inspecting and modifying the behavior of methods, classes, and interfaces. The classes required for reflection are provided in the java.lang.reflect package, which is required to understand reflection. Reflection informs us about the class to which an object belongs, as well as the methods of that class that can be […]

August 29, 2022 | Java | No comments

Character class in Java

In java.lang package, Java includes a wrapper class called Character. A single field of type char is contained in a Character object. The Character class provides several useful static (class) methods for manipulating characters. The Character constructor can be used to create a Character object. Constructor of Character wrapper class: Methods of Character Wrapper class: Methods […]

August 27, 2022 | Java | No comments

Boolean class in Java

In java.lang package, there is a wrapper class Boolean. A value of the primitive type boolean is wrapped in an object by the Boolean class. An object of type Boolean has a single field with the type boolean. Constructors for creating Boolean object: Methods of Boolean Wrapper class: Methods Description boolean booleanValue() Returns a primitive boolean […]

August 27, 2022 | Java | No comments

Double class in Java

The Double class is a wrapper class for the primitive type double. It contains several methods for dealing with double values effectively, such as converting them to string representations and vice versa. A Double object can only hold one double value. Constructor of Double wrapper class: There are mainly two constructors to initialize a Double-object […]

August 27, 2022 | Java | No comments

Float class in Java

The Float class is a wrapper class for the primitive type float. It contains several methods for dealing with float values effectively, such as converting them to string representations and vice versa. A Float object can only hold one float value. Constructor of float wrapper class: There are mainly two constructors to initialize a Float […]

August 27, 2022 | Java | No comments

Short class in Java

The Short class is a wrapper class for the primitive type short. It contains several methods for dealing with short values effectively, such as converting them to string representations and vice versa. Constructors: To initialize a Short object, there are primarily two constructors- Methods of Short wrapper class: Methods Description int compareTo(Long b) -If the invoked […]

August 27, 2022 | Java | No comments

Byte Class in Java

The Byte class creates an object out of a primitive type byte value. An object of type Byte has a single field of type byte. SignedBytes and UnsignedBytes are the methods that specifically treat bytes as signed or unsigned. Byte wrapper class Constructor: Methods of Byte class: Method Description static Byte valueOf() This method returns […]

August 21, 2022 | Java | No comments

Wrapper Class in Java

A Wrapper class is one whose object contains or wraps primitive data types. When we create an object for a wrapper class, it has a field where we can store primitive data types. To put it another way, we can turn a primitive value into a wrapper class object. Wrapper Classes Are Required : They […]

August 20, 2022 | Java | No comments

Advertisement