char keyword in Java

The “char” keyword is used to declare a variable of character type. “char” is a Java primitive type. A char variable can store a single Unicode character. For example: char delimiter = ‘;’; char letterA = ‘A’; char letterB = ‘B’; char letterC = ‘C’; The char keyword can be used as a method parameter […]

Share this article on

class keyword in Java

The class keyword is used to declare a new Java class, which is a collection of related variables and/or methods. Classes are the basic building blocks of object−oriented programming. A class typically represents some real−world entity such as a geometric Shape or a Person. A class is a template for an object. Every object is […]

Share this article on
< Previous Next >