Examlex

Solved

What Will Be Displayed After the Following Code Is Executed

question 10

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:

Degenerate

Originally used in physical and biological contexts to describe decline or decrease in function, the term can also refer to moral or cultural decline.

Surrealist

Pertaining to Surrealism, a 20th-century avant-garde movement in art and literature that sought to release the creative potential of the unconscious mind.

Nazi Regime

The authoritarian government led by Adolf Hitler in Germany from 1933 to 1945, known for its totalitarian policies and the perpetration of the Holocaust.

Eclipse of the Sun

A celestial event that occurs when the moon passes between the Earth and the sun, blocking all or part of the sun's light from reaching the Earth.

Related Questions