Is it possible to create a new instance of a class within the class itself | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to create a new instance of a class within the class itself

public class fooclass { public static void main(String[] args){ fooclass object = new fooclass(); // is it possible? } }

31st Oct 2017, 7:11 AM
Morgan Lee
Morgan Lee - avatar
0 Answers