Char

From Abap2Java

Jump to: navigation, search

ABAP

The Data Types CHAR and C have a fixed length. To define a variable of the length 1, use this syntax:.

DATA c(1) TYPE C.
c = 'A'.

Java

A char is the Java Data Type for a single character.
Size: 8 Bit.

char c; 
c = 'A';
char d = 'A';
char e = '\n'; 

See also
Data Type, Casting, String

Personal tools