{"id":23107276,"url":"https://github.com/artus/oca_se_8_exercises","last_synced_at":"2025-09-10T00:20:09.580Z","repository":{"id":37273685,"uuid":"154336533","full_name":"artus/OCA_SE_8_Exercises","owner":"artus","description":"Exercises that help you get ready for the OCA SE 8 exam.","archived":false,"fork":false,"pushed_at":"2018-11-06T10:58:01.000Z","size":38,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T16:33:55.894Z","etag":null,"topics":["certification","certification-prep","java","java-8","java8","oca"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-23T13:50:44.000Z","updated_at":"2022-06-30T01:13:58.000Z","dependencies_parsed_at":"2022-09-06T13:21:04.685Z","dependency_job_id":null,"html_url":"https://github.com/artus/OCA_SE_8_Exercises","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artus%2FOCA_SE_8_Exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artus%2FOCA_SE_8_Exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artus%2FOCA_SE_8_Exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artus%2FOCA_SE_8_Exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artus","download_url":"https://codeload.github.com/artus/OCA_SE_8_Exercises/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230047232,"owners_count":18164575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["certification","certification-prep","java","java-8","java8","oca"],"created_at":"2024-12-17T01:13:03.326Z","updated_at":"2024-12-17T01:13:03.868Z","avatar_url":"https://github.com/artus.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Training question for the OCA exam.\n\n## Rules\n\n### Extra code\n\nThe `helpers.Helper` methods are there to check which type an expression returns. They are always correct, so you don't need to check for mistakes over there. So if, for instance, you see:\n\n```java\nimport helpers.Helper;\n```\n\nor \n\n```java\nHelper.GET_TYPE(3 * 4);\n```\n\nYou don't have to check for errors. The `GET_TYPE` method will return the type of the expression passed as a parameter.\n\n### Access Modifiers\n\nThese exercises don't handle the `access modifiers` handled in chapter 4:\n\n- private\n- default (package private)\n- protected\n- public\n\nMake sure you don't forget to train on them using other resources.\n\n## Running one-liners\n\nUsing the `java-terminal.sh` you can execute one-liners to test certain expressions.\n\n```shell\nbash java-terminal.sh # PRESS ENTER\n\u003e System.out.println(\"Hello\"); # PRESS ENTER\nHello\n```\n\n## Training\n\n### Continuous exercises\n\nTo just start practicing, run\n\n```shell\nbash ./run.sh train\n```\n\nThis will show you Java 1.8 code, which you can analyse and think about how the compiler will handle it. When you think what will happen, you just press a button and the compiler will show what he makes of it.\n\nAfter you've seen the result, press another button to continue to the next code fragment.\n\n### Running exercises for a specific chapter\n\nTo run exercises from a specific chapter, just type\n\n```shell\nbash ./run.sh [chapter_number]\n```\n\nwhere `[chapter_number]` is the number of the chapter you want to train. you can also type `random` to get a random chapter.\n\n### Running specific exercises.\n\nTo run specific exercises, just type\n\n```shell\nbash ./run.sh [chapter_number] [exercise_number]\n```\n\nwhere `[chapter_number]` is the number of the chapter you want to train and `[exercise_number]` is the number of the exercise you want to train. You can also type `random`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartus%2Foca_se_8_exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartus%2Foca_se_8_exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartus%2Foca_se_8_exercises/lists"}