Explain about static nested classes in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What does string [] args mean?

0 Answers  


Is map sorted in java?

0 Answers  


How to extract HashMap values?

5 Answers   Marlabs,


What is composition in java?

0 Answers  


hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class

1 Answers  






what is difference between Interface and abstract class

2 Answers   GCPL,


Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..

7 Answers  


what is a transient variable?

5 Answers  


Why do we need wrapper classes?

0 Answers  


How do you achieve singleton?

0 Answers  


Can this keyword be used to refer static members?

0 Answers  


What do bitwise operators do?

0 Answers  


Categories