一些JAVA问题,初学者需要讲解?1.Programming involves four general phases that the programmer moves into and out of during the development of a program. The order in which the programmer moves through these phases is generally which of the fo

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/04 12:28:43
一些JAVA问题,初学者需要讲解?1.Programming involves four general phases that the programmer moves into and out of during the development of a program. The order in which the programmer moves through these phases is generally which of the fo

一些JAVA问题,初学者需要讲解?1.Programming involves four general phases that the programmer moves into and out of during the development of a program. The order in which the programmer moves through these phases is generally which of the fo
一些JAVA问题,初学者需要讲解?
1.Programming involves four general phases that the programmer moves into and out of during the development of a program. The order in which the programmer moves through these phases is generally which of the following?
(a) There is no defined order. The programmer moves into and out of one of the various four phases as dictated by circumstance and situation while writing the program.
(b) planning --> redefining--> coding--> testing
(c) defining/redefining --> planning --> implementing/coding --> testing/analyzing
(d) planning --> coding --> testing --> analyzing
(编程的一般步骤是怎么样的?)
2.Valid Java comments include which of the following?
I. /* this is an /* embedded */ comment */
II. /* this is an // embedded // comment */
III. // this is a comment */
(a) I only
(b) I and II only
(c) I and III only
(d) II and III only
(注释的规则有哪些?)
3.Consider a Java servlet that is invoked upon the submission of a form. If the form contains a radio button control with the name Foo, which of the following lines of code in the servlet can retrieve the value of this radio button?
(a) request.getRadio("Foo");
(b) request.getFoo();
(c) request.getParameter("Foo", radio);
(d) request.getParameter("Foo");
4.In a Java servlet, which of the following lines can cause data that was input by a user into an HTML form to be retrieved?
(a) response.setContentType("text/html");
(b) response.getWriter();
(c) out.println("Form value");
(d) request.getParameter("Name");
3和4在调用方法是有什么异同?
5.Consider the following Java code fragment.
public class TrafficLight{
int status;
public void changeStatus(int newStatus) {
status = newStatus;
}
public void turnOn(int newStatus) {
// . . .
}
}
In the method turnOn, which of the following statements should be used to call method changeStatus?
(a) changeStatus.newStatus;
(b) changeStatus(newStatus);
(c) TrafficLight.changeStatus(newStatus);
(d) changeStatus(TrafficLight, newStatus);
注:5中先TrafficLight的类,然后定义了叫changeStatus和turnOn的方法,那么要调用changeStatus的方法应该是C啊,为什么是B直接调用.比如6题调用方法时就是br.readLine();
6.If variable br references an instance of the class java.io.BufferedReader, which of the following statements is a legal call to the method readLine of the class?
(a) br.readLine;
(b) br(readLine);
(c) readLine(br);
(d) br.readLine();
我们的教材都是英文的啊,我也看得头大啊.
回复三楼:不是NIIT,我是大一的,我们的教材是英文的,作业也是英文的.

一些JAVA问题,初学者需要讲解?1.Programming involves four general phases that the programmer moves into and out of during the development of a program. The order in which the programmer moves through these phases is generally which of the fo
NIIT?
1.C
2.D (copy the comments to eclipse and then you will find the answer.)
3.D
4.D
5.B The right answer is this---this.changeStatus(newStatus);
6.D
Just FYI, and also i'm not sure the correctness.
And English is also very important.

一些JAVA问题,初学者需要讲解?1.Programming involves four general phases that the programmer moves into and out of during the development of a program. The order in which the programmer moves through these phases is generally which of the fo 英语单词变为过去式是,什么时候需要双写最后的字母希望举一些例子,要初学者好接受的讲解! 关于java的length一些问题while(x 要有知识点讲解讲一些概念性问题 初一数学难题,要有讲解.越多越好需要一些难题, 上学期的,好的追加100分 ,老师让我们写的,帮帮忙 .讲解讲解讲讲解讲解讲解讲解讲解解讲解讲解讲解讲解讲解讲解讲解讲解讲解讲解讲 Java数组问题 求一些0/0函数的问题.和讲解. 英语从句讲解我需要所有的从句讲解希望能完整、系统一些 需要讲解 需要讲解. 需要讲解. 英语口语初学者需要注意哪些问题哦?一直想把英语口语练好. 做观星族必备什么知识和条件?我只需要一个天文望远镜和一些天文学知识.请指点一二.1.对于初学者 购买什么样的天文望远镜即可?2.需要具备什么样的入门天文学知识?3.其他?--------------------- 英语翻译:需要先回国解决一些问题 我需要一套完整对vr的讲解,还有vr材质参数的数值,我是个初学者,希望哪个可以帮帮我,越详细越好! 结构力学问题,请问图8.12的Qb左和Qb右的影响线怎么画呢,最好能讲解一下的,初学者 求大神帮帮小弟这个初学者在java中,能不能有这样的情况,类A和类B分别在两个工程里,但让他们共同调用同一个类C如果能的话需要怎么实现呀 现代希腊语和古希腊语有多大的差别?古希腊语初学者需要注意哪些问题呢