Try This Online Java Gotchas Quiz
Try This Online Java Gotchas Quiz
![](https://cdn.prod.website-files.com/5fec9210c1841a6c20c6ce81/63e39c465243fe492ebdaf34_6032c29705c1485be69b24f6_Screenshot%25202021-02-22%2520at%25207.28.54%2520AM.webp)
![](https://cdn.prod.website-files.com/5fec9210c1841a6c20c6ce81/63e39c465243febbb8bdaf33_6032c29705c1485be69b24f6_Screenshot%25202021-02-22%2520at%25207.28.54%2520AM.webp)
A previous blog post described the Java Gotcha "Bitwise vs Boolean Operator".
We added a variant of this, and some other Java Gotchas into a fun little Quiz called "Challenge The Sensei".
If you've read the blog post above then you'll be in a good place to ace at least one of the questions.
But your friends might not, so if you find the quiz fun, you can share it with them and see if they score as well as you.
Since we don't want to just quiz you. We want to try and use this to help educate and codify the knowledge. So we have created a Github repo that has runnable code examples for the problem, and the solution.
This is a Sensei enabled repo.
When you clone the repo and load it into IntelliJ, assuming you have the Secure Code Warrior Sensei IntelliJ Plugin installed, then it will automatically see that you have a .sensei folder, and load the Sensei recipes.
When browsing the code in the IDE you should see IntelliJ prompt you that the error exists in the code, and this should make it easier to see the gotcha in the code:
- Hover over the highlighted code then you'll see a prompt telling you about the error
- Use the Show Context Action key: alt+enter (Windows) option+enter (macOS) and we may have a QuickFix available that can fix the code.
Sensei recipes have been added for:
We are adding more recipes and more explanatory text to cover the rest of the code in the future... but don't let that stop you from having a look at the code and spotting the error yourself.
And remember to try the quiz and "Challenge the Sensei"
![Challenge The Sensei](https://cdn.prod.website-files.com/5fec9210c1841a6c20c6ce81/62ffb205d9113874e6e825c9_challenge-the-sensei.gif)
Resources to get you started
Trust Agent by Secure Code Warrior
Discover SCW Trust Agent, an innovative solution designed to enhance security by aligning developer secure code knowledge and skills with the work they commit. It provides comprehensive visibility and controls across an organization's entire code repository, analyzing each commit against developers' secure code profiles. With SCW Trust Agent, organizations can strengthen their security posture, optimize development lifecycles, and scale developer-driven security.
Resources to get you started
Women in Security are Winning: How the AWSN is Setting Up a New Generation of Security Superwomen
Secure-by-Design is the latest initiative on everyone’s lips, and the Australian government, collaborating with CISA at the highest levels of global governance, is guiding a higher standard of software quality and security from vendors.
Women in Security are Winning: How the AWSN is Setting Up a New Generation of Security Superwomen
Secure-by-Design is the latest initiative on everyone’s lips, and the Australian government, collaborating with CISA at the highest levels of global governance, is guiding a higher standard of software quality and security from vendors.
SCW Trust Agent - Visibility and Control to Scale Developer Driven Security
SCW Trust Agent, introduced by Secure Code Warrior, offers security leaders the visibility and control needed to scale developer-driven security within organizations. By connecting to code repositories, it assesses code commit metadata, inspects developers, programming languages used, and shipment timestamps to determine developers' security knowledge.
Try This Online Java Gotchas Quiz
![](https://cdn.prod.website-files.com/5fec9210c1841a6c20c6ce81/63e39c465243fe492ebdaf34_6032c29705c1485be69b24f6_Screenshot%25202021-02-22%2520at%25207.28.54%2520AM.webp)
A previous blog post described the Java Gotcha "Bitwise vs Boolean Operator".
We added a variant of this, and some other Java Gotchas into a fun little Quiz called "Challenge The Sensei".
If you've read the blog post above then you'll be in a good place to ace at least one of the questions.
But your friends might not, so if you find the quiz fun, you can share it with them and see if they score as well as you.
Since we don't want to just quiz you. We want to try and use this to help educate and codify the knowledge. So we have created a Github repo that has runnable code examples for the problem, and the solution.
This is a Sensei enabled repo.
When you clone the repo and load it into IntelliJ, assuming you have the Secure Code Warrior Sensei IntelliJ Plugin installed, then it will automatically see that you have a .sensei folder, and load the Sensei recipes.
When browsing the code in the IDE you should see IntelliJ prompt you that the error exists in the code, and this should make it easier to see the gotcha in the code:
- Hover over the highlighted code then you'll see a prompt telling you about the error
- Use the Show Context Action key: alt+enter (Windows) option+enter (macOS) and we may have a QuickFix available that can fix the code.
Sensei recipes have been added for:
We are adding more recipes and more explanatory text to cover the rest of the code in the future... but don't let that stop you from having a look at the code and spotting the error yourself.
And remember to try the quiz and "Challenge the Sensei"
![Challenge The Sensei](https://cdn.prod.website-files.com/5fec9210c1841a6c20c6ce81/62ffb205d9113874e6e825c9_challenge-the-sensei.gif)
Resources to get you started
Women in Security are Winning: How the AWSN is Setting Up a New Generation of Security Superwomen
Secure-by-Design is the latest initiative on everyone’s lips, and the Australian government, collaborating with CISA at the highest levels of global governance, is guiding a higher standard of software quality and security from vendors.
SCW Trust Agent - Visibility and Control to Scale Developer Driven Security
SCW Trust Agent, introduced by Secure Code Warrior, offers security leaders the visibility and control needed to scale developer-driven security within organizations. By connecting to code repositories, it assesses code commit metadata, inspects developers, programming languages used, and shipment timestamps to determine developers' security knowledge.
Trust Agent by Secure Code Warrior
Discover SCW Trust Agent, an innovative solution designed to enhance security by aligning developer secure code knowledge and skills with the work they commit. It provides comprehensive visibility and controls across an organization's entire code repository, analyzing each commit against developers' secure code profiles. With SCW Trust Agent, organizations can strengthen their security posture, optimize development lifecycles, and scale developer-driven security.