Hello.

I have a few questions:

1. Which of the following for loop statements are correct? *
for(int i = 0; i < 10; i++);
for(i < 4; i++; i = 8);
none of the answers is correct
for(int i = 5; i++; i < 6)

The correct one should be the first one? for(int i = 0; i < 10; i++);?



2. In the method declaration, the listed items appear in the following order:
access modifier - method name - returned type – parameters
parameters - return type - access modifier - method name
method name - return type - parameters - access modifier
access modifier - return type - method name – parameters

Which one is correct and why?


3. Select correct statement:
two answers are correct ( It is possible to create multiple instances of one class & long variable can hold any number, no matter how many digits it has)
long variable can hold any number, no matter how many digits it has
none of the answers is correct
It is possible to create multiple instances of one class


4. Static can be applied to:
packages
all answers are correct
constructors
methods

Should be only methods?


5. In which case can data be lost?
When the value of an int type is assigned to a long variable
none of the answers is correct
When the value of an float type is assigned to a double variable
When the value of an int type is assigned to a short variable

Which one why?


Thank you in advance too.

Squish