Given the code fragment: package ocjap; public class arr49 { public static void main(String[] args) { int n[][] = { {1,3}, {2,4} }; for (int i = n.length-1; i >=0; i--) { for(int y : n[i]){ System.out.print(y); } } } } What is the result? A. 1324 B. 2313 C. 3142 D. 2413 정답: D 해설: package ocjap; public class arr49 { public static void main(String[] args) { int n[][] = { {1,3}, {2,4} }; System.out..
Given the code fragment package ocjap; public class Test12 { void readCard(int cardNo) throws Exception{ System.out.println("Reading Card"); } void checkCard(int cardNo) throws RuntimeException{ // line n1 System.out.println("Checking Card"); } public static void main(String[] args) { Test12 ex =new Test12(); int cardNo=12345; ex.checkCard(cardNo); // line n2 ex.readCard(cardNo); // line n3 } } ..
class Ideone { public static void main (String[] args) throws java.lang.Exception { // your code goes here int x=1; int y=0; if(x++ > ++y){ System.out.print("Hello "); }else{ System.out.print("Welcome "); } System.out.print("Log " + x + ":" + y); } } What is the result? A. Hello Log 1:0 B. Hello Log 2:1 C. Welcome Log 2:1 D. Welcome Log 1:0 정답: C 해설 x++ 는 나중에 더해지고 ++y는 먼저 더해진다. 아래 출력을 보면 명확해진다. ..
- Total
- Today
- Yesterday
- ocjap
- C언어
- EC
- 프로씨
- 이클립스
- ocajp
- xe애드온
- 인포믹스
- Python
- 자바 셀레니움
- 파이썬
- C
- 포인터
- MySQL
- KG
- ocpjp
- 자바 smtp
- 스크래핑
- XE
- JDBC
- esql
- 문자열
- 오라클
- proc
- XE3
- webix
- 자바
- php
- xe addon
- 파싱
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |