What does super()represent, and how is it used in Java?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• super() denotes a parent or base class's current instance.
• Used to: o Call the parent/base class's default constructor
Access the base class's methods
The superclass instance is indicated.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• super() denotes a parent or base class's current instance.
• Used to: o Call the parent/base class's default constructor
Access the base class's methods
The superclass instance is indicated.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I print a “?
How many types of design patterns are there?
Is a copy constructor?
What is a protected void?
Is the empty set a singleton?
what is mean by method signature?
Give any two differences between C++ and java.
What is meant by stack and queue?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Describe different states of a thread.
public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }
What is the r character?