자바 ocjap 문제 해설 - 연산자 우선순위
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는 먼저 더해진다. 아래 출력을 보면 명확해진다. ..
ocajp 자격증 (Oracle Certified Associate Ja
2020. 2. 16. 11:33
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 플러터
- 자바 smtp
- 문자열
- esql
- XE3
- 파싱
- php
- JDBC
- ocjap
- MySQL
- 오라클
- webix
- KG
- proc
- EC
- xe애드온
- Python
- C
- XE
- 포인터
- 자바
- 이클립스
- 인포믹스
- 프로씨
- xe addon
- 파이썬
- 라이믹스
- 스크래핑
- C언어
- ocajp
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
