31. | Can you give few examples of final classes defined in Java API? |
|
32. | How is final different from finally and finalize()? |
|
33. | Can a class be declared as static? |
|
34. | When will you define a method as static? |
|
35. | What are the restriction imposed on a static method or a static block of code? |
|
36. | I want to print "Hello" even before main() is executed. How will you acheive that? |
|
37. | What is the importance of static variable? |
|
38. | Can we declare a static variable inside a method? |
|
39. | What is an Abstract Class and what is it's purpose? |
|
40. | Can a abstract class be declared final? |
|