Skip to content
Software Testing Material Logo
  • Blog
  • TutorialsExpand
    • Expand
      • Manual Testing
      • Selenium
      • TestNG
      • Maven
      • Jenkins
      • Framework
    • Expand
      • Java
      • Agile
      • API Testing
      • Postman
      • SQL
      • VBScript
  • ToolsExpand
    • Recommended ToolsExpand
      • TestCollab
      • PractiTest
      • Testiny
      • Qase
      • Test Lodge
      • Testsigma
    • Expand
      • Postman
      • ActiveBatch
      • Redwood
      • Tidal Software
      • JScape
    • Best ToolsExpand
      • Enterprise Job Scheduler
      • Test Management
      • Automation Testing
      • Codeless Testing
      • Selenium Alternatives
      • Bug Tracking
      • Mobile App Testing
      • Cross Browser Testing
    • Expand
      • API Testing
      • Unit Testing
      • Regression Testing
      • Continuous Testing
      • Functional Testing
      • Penetration Testing
      • Performance Testing
      • View All
  • Interview Q & AExpand
    • Expand
      • Selenium
      • TestNG
      • Test Framework
      • Explain Framework
      • API
      • SOAP
      • Protractor
    • Expand
      • Manual Testing
      • Software QA
      • Agile
      • JIRA
      • Java
      • Python
      • SQL
  • Free Resources
  • QuizExpand
    • Software Testing Quiz
    • Automation Testing Quiz
    • Selenium Quiz
    • Performance Testing Quiz
    • ISTQB Quiz
    • Java Quiz
    • SQL Quiz
    • JIRA Quiz
  • Jobs
Software Testing Material Logo

Java Quiz

1. 

Runtime polymorphism can be achieved by data members

2. 

Which of the following is not a Java keyword

3. 

If you want your condition to depend upon 2 conditions both being true, what is the proper notation to put between the two Boolean statements

4. 

What is the size of a char in Java

5. 

Static methods cannot be accessed directly from the class level

6. 

What is the correct syntax for java main method?

7. 

The class whose properties are inherited are is known as
i. Sub class
ii. Super class
iii. Base class

8. 

Can we have any number of classes in a Java source file

9. 

Java runs on which platform

10. 

Which of the following is not a part of OOPs

11. 

Choose the appropriate data type for this value 9.9

12. 

Who is known as the founder of Java

13. 

An object could be

14. 

Can you save the java source file without any name (say ".java")?

15. 

An object which has no referrence is known as annonymous object

16. 

The class which inherits the properties of other is known as
i. Super class
ii. Sub class
iii. Derived class

17. 

What is the default value of the local variables?

18. 

Which statement is correct

19. 

When a class is based on another class, it inherits

20. 

An object that has more than one form is referred to as

21. 

Data hiding is also known as

22. 

Annonymous object can be used at the time of object creation only

23. 

Java keywords are written in lowercase as well as upper case

24. 

What are the two common characteristics shared by all objects in Java?

25. 

Can you compare between the boolean and int primitive data types?

clock.png

Time's up

ABOUT STM

We provide a diverse range of courses, tutorials, interview questions, resume formats to help individuals get started with their professional careers.

FOLLOW US ON

Facebook X Linkedin YouTube

NAVIGATION

About Us
Contact Us
Privacy Policy
Terms of Use
Disclaimer
Guest Post
Sitemap
Free Testing Resources

© 2025 Software Testing Material • All Rights Reserved.

Scroll to top
  • Blog
  • Tutorials
    • Manual Testing
    • Selenium
    • TestNG
    • Maven
    • Jenkins
    • Framework
    • Java
    • Agile
    • API Testing
    • Postman
    • SQL
    • VBScript
  • Tools
    • TestCollab
    • PractiTest
    • Qase
    • WebLoad
    • ActiveBatch
    • Kobiton
    • Testiny
    • Testsigma
  • Interview Q&A
    • Selenium
    • Manual Testing
    • TestNG
    • Java
    • Python
    • SQL
    • Explain Framework
  • Free Resources
  • Quiz
    • Software Testing Quiz
    • Automation Testing Quiz
    • Selenium Quiz
    • Performance Testing Quiz
    • ISTQB Quiz
    • Java Quiz
    • SQL Quiz
    • JIRA Quiz
Search