• Register
0 votes
58 views

Problem:

Can anyone help it was actually asked in exam as following and I need to know whether my answer was right or not?

With its encoding java can work with characters?

7 5 3
5,380 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution:

Correct answer is- 65536
 
Java represents characters using ASCII Unicode EBCDIC Morse Code Gray Code With its encoding Java can work with 65536 characters. 
 
Hope you the right number.
8 5 2
10,530 points
0 votes

The following sections will describe the java character set and character encodings for JAVA EE 6.

Characters:

A character set is a set of textual and graphic symbols, each of which is mapped to a set of non-negative integers,

Character Encoding:

A character encoding maps a character set to units of a specific width and elaborate byte serialization and ordering rules. Many character sets have more than one encoding.

Example:

Java programs can represent Japanese character sets using the EUC-JP or Shift-JIS encodings, among others. Each encoding has rules for representing the characters.

ISO 8859:

The ISO 8859 defines the 13 characters encodings that represent the text in a dozen languages. Each ISO 8859 has 256 characters.

UTP-8:

UTF-8 is a variable-width character encoding that encodes 16-bit Unicode characters as one of the four bytes. A byte in UTF-8 is equivalent to 7-bit ASCII if its high-order bit is zero, otherwise, the character comprises a variable number of bytes.

UTF-8 is compatible with the majority of existing web content and provides access to the Unicode character set. Current versions of browsers and email clients support UTF-8. In addition, many web standards specify UTF-8 and their character encodings

 

11 5 2
3,890 points

Related questions

0 votes
2 answers 20 views
20 views
Problem: With its encoding Java can work with?
asked Mar 9, 2020 ArifulIslam 5.6k points
0 votes
1 answer 14 views
0 votes
2 answers 92 views
92 views
I'm new in java programming, I know how to find out the largest or smallest number from an array. But I'm facing problem when I'm trying to find out smallest staring in 3 string. Please help me write a method min that has three string parameters and returns the smallest.
asked May 2, 2020 samhaz 5k points
1 vote
1 answer 131 views
131 views
Problem: Can anyone provide me an expression that executes the loop body as long as the user enters a non-negative number. Thanks in advance.
asked Apr 9, 2020 LizzyM 6.1k points
0 votes
1 answer 90 views
90 views
Solutions: I am new in programming and my logic is not good, can anyone give the right solution? Write an expression that evaluates to true if and only if the C-string s equals the C-string "end"?
asked Feb 14, 2020 maddi86 5.4k points
0 votes
1 answer 38 views
38 views
Problem: Can anyone help it was actually asked in exam as following and I need to know whether my answer was right or not? In most programming languages, before you can use any variable, you must include a ____ for it? a. declaration b. definition c. header d. proclamation
asked Feb 19, 2020 maddi86 5.4k points
1 vote
1 answer 267 views
267 views
Problem: The maximum number of entry points that any programming structure can have is ____.? Which answer fits in the blank? A) five B) zero C) three D) one
asked Feb 19, 2020 maddi86 5.4k points
0 votes
1 answer 10 views
10 views
Problem: I want to implement a kind of console (function menu_principal), where the user can go to different menus according to their choice. One of these options is to enter a directory (function dir_manager, accessed with the number 1). Once the user wants to end the execution, he must type the ... * option1 = 1; // <---- THIS IS THE ERROR return; } else if (* option1 == 9) { return; } } }
asked Jan 1 sasha 5.3k points
0 votes
1 answer 105 views
105 views
Problem: Write an expression whose value is the str that consists of the third to last character of the str associated with s I tried s[2:] didn't work. Can you please guide me with right solution?
asked Feb 19, 2020 maddi86 5.4k points
0 votes
1 answer 161 views
161 views
Problem: I am new in programming and stuck in a query, can anyone guide me? Write an expression that evaluates to True if the str associated with s starts with "p"?
asked Feb 17, 2020 maddi86 5.4k points