Syvum Home Page

Home > Quiz Games > Java Programming >

Java Programming : Flash Cards III


Learn Java programming through these flash cards.

Formats Worksheet / Test Paper Quiz Review
Flash Cards



State the output of the following program:
class Recur
{
public static void main(String args[ ])
{
int Result = result(10);
System.out.println("Result = " + Result);
}
static int result(int m)
{
if(m <= 2)
return m;
else
return m + result(m-2);
}
}
 



Print Flashcards
Create Your Own Flash Cards


Contact Info © 1999-2018 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright