Related Questions

What happens if the following program is compiled and executed? interface MyInterface{ void display(); } interface MySubInterface extends MyInterface{ void display(); } public class Test implements MySubInterface{ public void display(){ System.out.print("Welcome to Examveda."); } public static void main(String args[]){ Test t = new Test(); t.display(); } }
For the given syntax of sed, which among the following is not a correct option? General syntax of sed: /pattern/action
If any sed command does not specify any address then the command is applied to
What will be the output when the following program is compiled and executed? abstract class TestAbstract{ String my_name; String myName(){ my_name = "Examveda"; return my_name; } abstract void display(); } public class Test extends TestAbstract{ void display(){ String n = myName(); System.out.print("My name is "+ n); } public static void main(String args[]){ Test t = new Test(); t.display(); } }
The letters P, Q, R, S, T and U are to be placed one per vertex on a regular convex hexagon, but not necessarily in the same order. Consider the following statements: The line segment joining R and S is longer than the line segment joining P and Q. The line segment joining R and S is perpendicular to the line segment joining P and Q. The line segment joining R and U is parallel to the line segment joining T and Q. Based on the above statements, which one of the following options is CORRECT?