PRACTICE JAVA
Which of the following is true about inheritance in Java?
a. Private methods are final. b. Protected members are accessible within a package and inherited classes outside the package. c. Protected methods are final. d. We cannot override private methods. Answer: 1,2 and 4
Read only variables in java
a) Can be modified at runtime in non static constructor only. b) Can be modified from both method and constructor. c) Can never be modified as it behave as constant variable d) All of the above Answer a) Can
Java uses two stage for program execution.They are
a) Compiler and system b) Compiler and instructions c) Compiler and interpreter d) None of the above Answer c) Compiler and interpreter
Which of the following are not java Modifiers .
a) Public b) Private c) Friendly d) Protected Answer c) Friendly
Which two interfaces does the javax.servlet.jsp package have?
a) JspPage b) HttpJspPage c) JspWriter d) Both a) and b) Answer Both a) and b)
Type promotion in Java usually refers to ____.
a) Narrowing Type Conversion b) Widening Type Conversion c) No Type Conversion d) None of the above Answer d) Widening Type Conversion

Aniket Malik
CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS
My students are the presents from God to me
Do you want to learn
Programming?
Hey, I’m Aniket. I’m determined to make you one of the best developers in the history of Information technology.
My only question is, are you ready?