← Back to feed
Renewal·서른의 생활코딩

ex13) java

NS
normalstory
cover image




class Test02{
        void Star(){ 
                        // access modifier omitted (public, private, protected, or omitted)
        System.out.println("******");
        return;       // can be omitted
        }
}

public class fun05 {
        public static void main(String[] args) {
                        //1 Test02 t; // t is initialized to null. The object itself does not exist yet.
                        // t= new Test02();
        Test02 t = new Test02();
        t.Star();
        //Star();
        System.out.print("hello Java");
        t.Star();
        }

}
 

This English version was translated by Codex.

친절한 찰쓰씨
Written by
친절한 찰쓰씨

Pleasant Charles — UI/UX researcher at AIT. Keeping notes on design, planning, and slow days here since 2010.