R4R
Right Place For Right Person TM

How can you call the constructor of super class ?

previous previous previous
Question:
How can you call the constructor of super class ?

Question:How can you call the constructor of super class ?


Answer
We can call the superclass constructor by making a call to super() in the subclass constructor.

By:Jalees
Date:

How can you call the constructor of super class ?

Post Your Answers


User Name:
Answers:

Related Links

  1. What must be the order of catch blocks when catching more than one exception?
  2. How can we call a method or variable of the super class from child class ?
  3. If you are overriding equals() method of a class, what other methods you might need to override ?
  4. What is externalizable ?
  5. Does garbage collection guarantee that a program will not run out of memory?
  6. What is a native method?
  7. What is the difference between a continue statement and a break statement?
  8. What must a class do to implement an interface?
  9. What is the difference between notifyand notifyAll method ?
  10. What does wait method do ?
  11. What are the different states of a thread ?
  12. What is the difference between static and non static inner class ?
  13. What is the difference between readers and streams?
  14. Why we cannot override static methods?
  15. When does a compiler supplies a default constructor for a class?
  16. What will happen if an exception is not caught ?
  17. What are the different ways in which a thread can enter into waiting state?
  18. What is a ResourceBundle class?
  19. What is numeric promotion?
  20. What is the difference between the prefix and postfix forms of the ++ operator?
  21. What is the difference between a switch statement and an if statement?
  22. What is hashCode?
  23. What is the difference between RandomAccessFile and File?
  24. What is the difference among JVM Spec, JVM Implementation, JVM Runtime ?
  25. What is the difference between Hashtable and HashMap ?
  26. Why java is said to be pass-by-value ?
  27. What do you mean by immutable ? How to create an immutable object ?
  28. What is a weak reference ?
  29. What is object cloning?
  30. What is object pooling?
  31. What is the disadvantage of garbage collection?
  32. What are tag interfaces?
  33. What are the restrictions placed on static method ?
  34. What is JIT?
  35. What is the Locale class?
  36. What is the difference between URL and URLConnection?
  37. What are the two important TCP Socket classes?
  38. Strings are immutable. But String s="Hello"; String s1=s+"World" returns HelloWorld how ?
  39. What is classpath?
  40. What is path?
  41. What is java collections?
  42. Can we compile a java program without main?
  43. What is static initializer block? What is its use?
  44. How does a try statement determine which catch clause should be used to handle an exception?
  45. If a class doesn't have any constructors, what will happen?
  46. What will happen if a thread cannot acquire a lock on an object?
  47. What will happen if you are invoking a thread's interrupt method while the thread is waiting or sleeping?
  48. What is coupling?
  49. How will you define an interface?
  50. How will you define an abstract class?

Question:How can you call the constructor of super class ?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R