Correct the following wrong statements. 1. do … while repetition statement gives full control on the code block to be repeated. 2. In Java, once a variable is declared in a method as local variable,...


Correct the following wrong statements.
1. do … while repetition statement gives full control on the code block to be repeated.
2. In Java, once a variable is declared in a method as local variable, it will be visible and could
be used in any other method in the program.
3. All binary operators except for the assignment operators are evaluated as user intention.
4. In Java, byte code is translated to native code by java compiler.
5. Each row in a single dimensional array could be dealt with as 2-dimensional array.
6. The indices of elements in a single dimensional array named arrElem are from 1 to
arrElements[]length.
7. In Java, method overloading means that a program may contain more than one method
with same signatures. Each column in a 2D array could be dealt with as 1D array.
8. The following statement creates and initializes the 2-dimensional array values:
short values[][] = {10, 20, 30, 40, 50};
9. A ragged 2D array is a 2D array in which each row may contain the same number of
columns.
10. Any Variable declared primitive real-value type couldn’t be promoted to any other data
type in Java.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here