Java Online OOPS Quiz-Test your knowledge total-qa February 27, 2018 March 5, 2018 5 Comments on Java Online OOPS Quiz-Test your knowledge Reference URL’s Java Platform Standard Edition 8 Documentation Complete List of Java Basics Please enter your email: 1. The Common behavior of SuperClass is inherited to SubClass using the keyword__?? extends implements override follows 2. An Object state is stored in methods. False True 3. How to fetch the current time in Milliseconds? System.getDate() System.getTime() System.currentTimeMillis() System.getTime() 4. What is the default value of boolean? true false 5. final classes cannot be extended. No Yes final Classes cannot be extended in java. Example: String,System,Math 6. The term API stands for __? App Programming Interface Application Point Interface Application Programming Interface Application Programming Inheritance 7. Can we Create Abstract Class with out any abstract methods? No Yes Abstract Class can be created without any abstract methods. But if the class contains one abstract methods class would be abstract. 8. final variables are constants. No Yes final variables are constants once assign. It cannot be reassigned. 9. What is the superclass for all the Exceptions and Errors in Java? Compile Time Exception Exception RunTime Exception Throwable 10. A collection of methods with no implementation is an__? Interface Exception Inheritance Polymorphism 11. Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as ___? Interface Encapsulation Inheritance Polymorphism 12. An Object behavior is exposed through fields. False True 13. Real Objects contain State and Behavior. True False 14. final methods cannot be overriden. Yes No If we want to avoid any method to override add keyword final. 15. Can we override static methods in JAVA? Yes No Maintaining the same method in the SuperClass and SubClass with same return type is known as overriding. Overriding is applicable to non-static members of the class. Overriding is not applicable to static members of the class. Loading …
karunanidhi Ethiraj August 29, 2018 at 2:54 pm ITs really super site to recall our technical concepts in java Reply ↓
harshali October 21, 2018 at 10:57 am . Can we Create Abstract Class with out any abstract methods? No Yes Abstract Class can be created without any abstract methods. But if the class contains one abstract methods class would be abstract. No meaning of above statement If any class containes method which is abstract then that class has to be abstract. Reply ↓
Pingback: Selenium WebDriver Tester Resume,Automation Tools Used
Pingback: MYSQL DataBase testing using Selenium WebDriver-Step by Step Guide
Pingback: Sorting the Dynamic HTML Table List in Selenium WebDriver & Java - TotalQA
ITs really super site to recall our technical concepts in java
. Can we Create Abstract Class with out any abstract methods?
No
Yes
Abstract Class can be created without any abstract methods.
But if the class contains one abstract methods class would be abstract.
No meaning of above statement
If any class containes method which is abstract then that class has to be abstract.