Git Product home page Git Product logo

oca_se_8_exercises's Introduction

Training question for the OCA exam.

Rules

Extra code

The 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:

import helpers.Helper;

or

Helper.GET_TYPE(3 * 4);

You don't have to check for errors. The GET_TYPE method will return the type of the expression passed as a parameter.

Access Modifiers

These exercises don't handle the access modifiers handled in chapter 4:

  • private
  • default (package private)
  • protected
  • public

Make sure you don't forget to train on them using other resources.

Running one-liners

Using the java-terminal.sh you can execute one-liners to test certain expressions.

bash java-terminal.sh # PRESS ENTER
> System.out.println("Hello"); # PRESS ENTER
Hello

Training

Continuous exercises

To just start practicing, run

bash ./run.sh train

This 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.

After you've seen the result, press another button to continue to the next code fragment.

Running exercises for a specific chapter

To run exercises from a specific chapter, just type

bash ./run.sh [chapter_number]

where [chapter_number] is the number of the chapter you want to train. you can also type random to get a random chapter.

Running specific exercises.

To run specific exercises, just type

bash ./run.sh [chapter_number] [exercise_number]

where [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.

oca_se_8_exercises's People

Contributors

artus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

develop5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.