What are static methods?


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

Post New Answer

More Core Java Interview Questions

11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.

6 Answers  


What is cr keyboard?

0 Answers  


What is advantage of java?

0 Answers  


Can we use a default constructor of a class even if an explicit constructor is defined?

0 Answers  


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.

0 Answers   Manhattan,






Name container classes in java programming?

0 Answers  


Explain Stream Tokenizer?

4 Answers  


What is void data type?

0 Answers  


Why does java have two ways to create child threads? Which way is better?

0 Answers  


What are parameters in a method?

0 Answers  


What is super keyword in java ?

1 Answers  


What is a null class?

0 Answers  


Categories