Examlex

Solved

What Will Be Displayed After the Following Code Is Executed

question 41

Multiple Choice

What will be displayed after the following code is executed?
String str = "abc456";
For (int i = 0; i < str.length() ; i++)
{
Char chr = str.CharAt(i) ;
If (!Character.isLetter(chr) )
System.out.print(Character.toUpperCase(chr) ) ;
}


Definitions:

Illicit Trade

The trade of goods that are illegal or prohibited by law.

National Debt

Money owed by the government to individuals, businesses, and government agencies who purchase Treasury bills, Treasury notes, and Treasury bonds sold to cover expenditures.

Corporate Taxes

Taxes imposed on the income or profit of corporations and other business entities by the government.

Treasury Bills

Short-term government securities issued at a discount from the face value and maturing at their face value.

Related Questions