Category Archives

Bounded types with generics in Java

Bounded Type Parameters There may be times when you want to restrict the types that can be used as...

Bounded types with generics in Java

Bounded Type Parameters There may be times when you want to restrict the types that can be used as...

Blank Final in Java

A final variable in Java can be assigned a value only once, we can assign a value either in...

Blank Final in Java

A final variable in Java can be assigned a value only once, we can assign a value either in...

Scope of Variables In Java

Scope of a variable is the part of the program where the variable is accessible. Like C/C++, in Java,...

Scope of Variables In Java

Scope of a variable is the part of the program where the variable is accessible. Like C/C++, in Java,...

Variables in Java

A variable is a name given to a memory location. It is the basic unit of storage in a...

Variables in Java

A variable is a name given to a memory location. It is the basic unit of storage in a...

StringBuffer appendCodePoint() Method in Java with Examples

The java.lang.StringBuffer.appendCodePoint(int cp)is the method which appends the string representation of the codePoint argument to this sequence. Syntax :...

StringBuffer appendCodePoint() Method in Java with Examples

The java.lang.StringBuffer.appendCodePoint(int cp)is the method which appends the string representation of the codePoint argument to this sequence. Syntax :...

Enum with Customized Value in Java

By default enums have their own string values, we can also assign some custom values to enums. Consider below...

Enum with Customized Value in Java

By default enums have their own string values, we can also assign some custom values to enums. Consider below...

enum in Java

Enumerations serve the purpose of representing a group of named constants in a programming language. For example the 4...

enum in Java

Enumerations serve the purpose of representing a group of named constants in a programming language. For example the 4...

Data types in Java

There are majorly two types of languages. First, one is Statically typed language where each variable and expression type...

Data types in Java

There are majorly two types of languages. First, one is Statically typed language where each variable and expression type...

Java Identifiers

In programming languages, identifiers are used for identification purposes. In Java, an identifier can be a class name, method...

Java Identifiers

In programming languages, identifiers are used for identification purposes. In Java, an identifier can be a class name, method...

Using predefined class name as Class or Variable name in Java

In Java, Using predefined class name as Class or Variable name is allowed. However, According to Java Specification Language(§3.9)...

Using predefined class name as Class or Variable name in Java

In Java, Using predefined class name as Class or Variable name is allowed. However, According to Java Specification Language(§3.9)...