java代碼塊執行順序

下面將代碼塊:java package com.zzxt.java.mtexs; public class Phone { String color; static float screenSize; //靜態代碼塊 static { System.out.println("這是靜態代碼塊!!"); screenSize = 5.8f; } //方法 public Phone() { Sy
相關文章
相關標籤/搜索