---
title: "你能猜出程序的结果吗"
author: "likeenicee"
date: "2010-08-17T17:41:32Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2010-08-17T17:41:32Z"
id: 739464
url: "https://likeenicee.iteye.com/blog/739464"
---

```java

public class InitialValues {
    boolean t = f();
    int i = 123;

    boolean f() {
        System.out.println("i=" + this.i);
        return true;
    }

    public static void main(String[] args) {
        InitialValues iv = new InitialValues();
        System.out.println("i=" + iv.i);
    }
}

```