Search:

Type: Posts; User: CheukKwan

Search: Search took 0.13 seconds.

  1. Replies
    2
    Views
    1,061

    Re: Why the value of ' i' is 0;

    public class Son extends Base {
    private int i = 22; //12
    {
    System.out.println("private int i = "+i); //13
    }
    public Son() { //3
    i = 222; //14
    System.out.println("i: " + i);...
  2. Replies
    2
    Views
    1,061

    Why the value of ' i' is 0;

    Hi ! I'm new here.I have a question.I don't konw why the value of ' i' is 0;And the following is my code. Thx.


    public class TestDemo {
    public static void main(String[] args) {
    new Son();...
Results 1 to 2 of 2