What are static methods?
No Answer is Posted For this Question
Be the First to Post Answer
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.
What is cr keyboard?
What is advantage of java?
Can we use a default constructor of a class even if an explicit constructor is defined?
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.
Name container classes in java programming?
Explain Stream Tokenizer?
What is void data type?
Why does java have two ways to create child threads? Which way is better?
What are parameters in a method?
What is super keyword in java ?
What is a null class?