Java classic test questions

xiaoxiao2021-03-13  182

Public class test1 {public static void main (String [] args) {subclass sb = new subclass ();}} class sssuper {

Static {system.out.println (1);

SSSUPER (INT i) {system.out.println (i);}} class subclass extends sssuper imports interface {

Static {system.out.println (2);

Sssuper Su = New Sssuper (4);

Subclass () {Super (3); New Sssuper (5);}} Interface interface {static sssuper su = new sssuper (0);

转载请注明原文地址:https://www.9cbs.com/read-129162.html

New Post(0)