Examlex

Solved

What Is the Output of This Code Snippet? String Str

question 33

Multiple Choice

What is the output of this code snippet? String str = "ABCabc";
Char ch;
Int i = 0;
While (i < str.length() )
{
Ch = str.charAt(i) ;
If (Character.isLowerCase(ch) )
{
System.out.print(i + " ") ;
}
Else
{
I++;
}
}


Definitions:

Depreciation Method

A systematic approach for allocating the cost of a tangible asset over its useful life, reflecting the asset's consumption, wear and tear, or obsolescence.

Related Questions