Home > Java Programming > Declarations and Access Control > Questions and Answers
Exercise:
Q: |
What will be the output of the program? import java.util.*; public class NewTreeSet2 extends NewTreeSet{ public static void main(String [] args){ NewTreeSet2 t = new NewTreeSet2(); t.count(); } } protected class NewTreeSet{ void count(){ for (int x = 0; x < 7; x++,x++ ){ System.out.print(" " + x); } } } | ||||||||||
|
Comment on this Question | |
Name: | |
|