PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

Java · Theory

Unicode System in Java

← All stacks

Theory

12/270

Unicode System in Java

Unicode means Java can store Hindi, English, and many other scripts, not only A–Z. That matters for real apps in India.

A char is based on Unicode. You can also write '\u0905' for अ. Everyday text usually sits in a String, not a single char.

One char is not always one visible symbol. Some symbols need more than one code unit. Don’t treat every letter as exactly one char.

Let's take this on the board with one tiny Main class — no extra files. Unicode System in Java — output: अ. \u0905 is Unicode for अ — Java char can store Hindi, not only English. Start from main, go line by line, and stop at each print. That output is the proof for Unicode System.

Exam tip

Say: Java uses Unicode, so Hindi text is normal, not a hack.

Example

public class Main {
  public static void main(String[] args) {
    char hindi = '\u0905'; // अ
    System.out.println(hindi);
  }
}

Unicode System in Java — output: अ. \u0905 is Unicode for अ — Java char can store Hindi, not only English.

Short notes

  • DefUnicode lets Java store Hindi, English, and many scripts.
  • Rulechar uses Unicode. '\uXXXX' is a Unicode escape.
  • RememberEveryday text goes in String, not one char.
  • TrapOne visible symbol is not always one char.

Questions

1

Why does Java use Unicode?

2

Where do you store a sentence?

Previous← Data Types in JavaNextJava Operators →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.