Given the code fragment: import java.util.ArrayList; import java.util.List; public class List81 { public static void main(String[] args) { List colors=new ArrayList(); colors.add("green"); colors.add("red"); colors.add("blue"); colors.add("yellow"); colors.remove(2); colors.add(3,"cyan"); System.out.println(colors); } } What is the result? A. (green,red,yellow,cyan) B. (green,blue,yellow,cyan) C..
Given: public class Type43 { static double area; int b=2, h=3; public static void main(String[] args) { double p,b,h; //line n1 if(area==0){ b=3; h=4; p=0.5; } area=p*b*h; //line n2 System.out.println("Area is "+area); } } What is the result? A. Area is 6.0 B. Area is 3.0 C. Compilation fails at line n1 D. Compilation fails at line n2 정답: D 변수들 (p,b,h)이 초기화가 되지 않았는데 계산을 하려고 해서 컴파일 에러가 난다. 마치 if ..
- Total
- Today
- Yesterday
- 플러터
- xe애드온
- JDBC
- MySQL
- 파이썬
- xe addon
- proc
- XE
- 포인터
- 파싱
- ocajp
- Python
- EC
- 스크래핑
- ocjap
- 라이믹스
- C
- XE3
- 자바
- KG
- esql
- 프로씨
- 이클립스
- 자바 smtp
- php
- 오라클
- 인포믹스
- C언어
- 문자열
- webix
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
