Name:_______________________



Name:_______________________

Covers Chapters 7-9

50 min (Practice Questions) |CSCI 1302 OO Programming

Armstrong Atlantic State University

Instructor: Y. Daniel Liang | |

(50 minutes)

Part I. (2 pts each)

1. Add the static keyword in the place of ? if appropriate.

public class Test {

private int count;

public ? void main(String[] args) {

...

}

public ? int getCount() {

return count;

}

public ? int factorial(int n) {

int result = 1;

for (int i = 1; i ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download