In: Computer Science
Write one difference for items below
a. char versus Character
b. Source code versus Byte code
c. Complier error versus Runtime error
d. char [ ] versus String [ ]
a. char is a primitive type that represents a single 16 bit Unicode character while Character is a wrapper class that allows us to use char primitive concept in OOP-kind of way.
b.Source code refers to the high-level code or assembly code that is generated by a human/programmer. So the statements written in any programming language is termed as source code. ... Byte code is an intermediate code between the source code and machine code.
c.Compile-time errors are generally referred to the error corresponding to syntax or semantics. Runtime errors on the other hand refer to the error encountered during the execution of code at runtime
d.Char is a single alphabet where as String is a sequence of characters. Char is primitive datatype where as String is a class. A char holds a single character, while a string holds lots of characters.
Any queries just comment
Give thumbsup
Thank you and all the best