Primitive Data Type – Character

Primitive Data Type in Java – Character

Primitive data type are very important in any language. Without this data types we cannot understand programming language. We can also called primary data types in java. In this primitive data types we found four types of family like Integer, Float, Character and Boolean. And these families have their own children like Integer [byte, short, int and long], Float [float, double], Character [char] and Boolean [Boolean].

In this blog we will discuss on Character Family:

Character Data Type

NoData TypesSizeRang
1char2 byteLess than other


Program in Character Data Types:

Title: Primary Data Type – Character

class data3


public static void main(String args[])


char ch = ‘K’;

System.out.println(“Ch = ” + ch);

ch++; // increase in ASCII Code

System.out.println(“Ch = ” + ch);

System.out.println(“Ch = ” + ch + ” | ASCII Value = ” + (int)ch);




Ch = K

Ch = L

Ch = L | ASCII Value = 76


Video available on YouTube.



Tutorial – Try Yourself

Tutorial – 1 : Find your name ASCII Code.



If you have problem on this blog, you can directly comment or subscribe with website.


Primitive Float | Primitive Boolean

1448total visits,2visits today


Hello, I am Maddy a Java blogger, trainer and developer

Related articles

2 responses to “Primitive Data Type – Character”

  1. I see your website needs some fresh articles. Writing manually is
    time consuming, but there is tool for this task.
    Just search in gooogle for – Avurker’s essential tools

  2. I was just looking at your Primitive Data Types – Character | Java Program site and see that your website has the potential to become very popular. I just want to tell you, In case you didn’t already know… There is a website service which already has more than 16 million users, and the majority of the users are looking for topics like yours. By getting your website on this service you have a chance to get your site more visitors than you can imagine. It is free to sign up and you can find out more about it here: – Now, let me ask you… Do you need your website to be successful to maintain your way of life? Do you need targeted traffic who are interested in the services and products you offer? Are looking for exposure, to increase sales, and to quickly develop awareness for your site? If your answer is YES, you can achieve these things only if you get your website on the network I am describing. This traffic service advertises you to thousands, while also giving you a chance to test the service before paying anything. All the popular sites are using this network to boost their readership and ad revenue! Why aren’t you? And what is better than traffic? It’s recurring traffic! That’s how running a successful website works… Here’s to your success! Read more here: