V
Q. What is the result of the following code snippet? abstract class MyAbstract { private void myMethod() { System.out.println("Private Method"); } } class MyClass extends MyAbstract { public static void main(String[] args) { MyClass obj = new MyClass(); obj.myMethod(); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of these methods initiates garbage collection?
Q. Which http method send by browser that asks the server to get the page only?
Q. Which of the following is not a built-in functional interface in Java 8?
Q. Which type of ServletEngine is a server that includes built-in support for servlets?
Q. ___ keyword is used to refer to the current object.
Q. Java uses UTF-16 Unicode format to represent characters. What is UTF?
Q. What is method overriding in Java?
Q. Which class cannot be instantiated?
Q. Can servlet class declare constructor with ServletConfig object as an argument?
Discusssion
Login to discuss.