Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Mary Howard

Mary Howard

Community Learner
Share
9Questions
4Answers
15.5KViews on questions

What's the use of "enum" in Java?

In Java, the enum keyword is used to define a fixed set of constants, making your code more readable, maintainable, and type-safe. But why use enum instead of traditional constants like static final variables? Here’s why enum is so useful: Type safety: Unlike plain constants, enums prevent invalid values from being…

Java

Answered May 20, 2025 · 695 Views Read answer →

What is the OWASP Top 10 list of web application security risks?

The OWASP Top 10 is a widely recognized list of the most critical web application security risks, published by the Open Web Application Security Project (OWASP). It helps developers and security professionals prioritize security measures to protect against the most common vulnerabilities in web applications. Here’s a…

Cyber Security

Answered Dec 19, 2024 · 3.8K Views Read answer →

Should I use cdata javascript?

You should not use XHTML 1.0 anymore ( which is where you would use CDATA javascript). What is even more important, you should not have javascript inside your html files. Instead you should include external files via [removed][removed].

Java

Answered Oct 11, 2022 · 943 Views Read answer →

How do I get the size of a java sql ResultSet

String querys = "SELECT COUNT(*)as count FROM To get java resultset size reference that column from the ResultSet object into an int and do your logic from there.. PreparedStatement statements = connection.prepareStatement(querys); statements.setString(1, item.getProductId()); ResultSet resultSet =…

Java

Answered Jul 27, 2021 · 2.0K Views Read answer →

More members from the Java community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.