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 keyword used to create a variable of Character data type but the Character is a class used to create object.
b.
The source code is the program written as a text file but the bytecode is the intermediate code that is executed by Java Virtual Machine(JVM). This code helps to achieve the platform independence feature in Java.
c.
The compiler error is the error that stops the compiler to compile the code due to error in the source code bu the errors which are generated while the program is running are known as a runtime error.
d.
The char[] is used to create an array of characters but the String[] is used to create an array of string.
Get Answers For Free
Most questions answered within 1 hours.