您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Reflect Index

Reflect Page # 12

Review Question 12

A number of complications arise from the fact that Java uses two bytes of memory to represent a character, and most other programming languages use a single byte. In fact, normally a ‘byte’ and a ‘character’ are equivalent. These complications could be overcome if text files were written such that each character was two bytes and not one (as Java requires). What would be the implications of this for a Java program?

Discussion of Review Question 12

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg