the constructor of a FilterOutputStream? A. InputStream B. OutputStream C. File D. RandomAccessFile E. StreamTokenizer
45. Given a TextArea using a proportional pitch font and constructed like this: TextArea t=new TextArea(“12345”,5,5); Which statement is true? A. The displayed width shows exactly five characters one each line unless otherwise constrained B. The displayed height is five lines unless otherwise constrained C. The maximum number of characters in a line will be five D. The user will be able to edit the character string E. The displayed string can use multiple fonts 46. Given a List using a proportional pitch font and constructed like this: List l=new List(5,true); Which statement is true? A. The displayed item exactly five lines unless otherwise constrained B. The displayed item is five lines init, but can displayed more than five Item by scroll C. The maximum number of item in a list will be five. D. The list is multiple mode
47. Given this skeleton of a class currently under construction: public class Example{ int x,y,z;
public Example (int a, int b) { //lots of complex computation x=a; y=b; } public Example(int a, int b, int c){ // do everything the same as single argument // version of constructor // including assignment x=a, y=b, z=c z=c; } } What is the most concise way to code the “do everything…” part of the constructor taking two arguments? Short answer:
48. Which correctly create a two dimensional array of integers? A. int a[][] = new int[][]; B. int a[10][10] = new int[][]; C上一页 [1] [2] [3] [4] [5] [6] 下一页 |