Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c321845
feat(localization): 🎸 locale, translated
rcmoutinho Sep 11, 2019
7dd0d7f
feat(localization): 🎸 resource bundle, translated
rcmoutinho Sep 11, 2019
d035ae1
feat(localization): 🎸 date and time, translated
rcmoutinho Sep 11, 2019
b4ccad5
feat(localization): 🎸 formats, translated
rcmoutinho Sep 11, 2019
b0b94e4
feat(localization): 🎸 time zones, translated
rcmoutinho Sep 11, 2019
54cd157
fix(localization): 🐛 general translation
rcmoutinho Sep 11, 2019
ea63716
feat(lambda): 🎸 functional interfaces, translated
rcmoutinho Sep 11, 2019
e8ced1d
fix(lambda): 🐛 ignores a functional interfaces example error
rcmoutinho Sep 11, 2019
322d571
feat(lambda): 🎸 lambda expression, translated
rcmoutinho Sep 11, 2019
8064241
feat(lambda): 🎸 built-in interfaces, translated
rcmoutinho Sep 12, 2019
b46764e
feat(lambda): 🎸 method reference, translated
rcmoutinho Sep 12, 2019
6ffff54
fix(lambda): 🐛 general translation
rcmoutinho Sep 12, 2019
de27189
feat(streams): 🎸 using streams, translated
rcmoutinho Sep 12, 2019
d52a7c4
feat(streams): 🎸 parallel streams, translated
rcmoutinho Sep 12, 2019
7d60dc8
feat(concurrency): 🎸 concurrent package, translated
rcmoutinho Sep 12, 2019
e0e1023
feat(concurrency): 🎸 locks, translated
rcmoutinho Sep 12, 2019
ab329fd
feat(concurrency): 🎸 execute tasks, translated
rcmoutinho Sep 12, 2019
fe0c471
feat(concurrency): 🎸 fork-join, translated
rcmoutinho Sep 12, 2019
8d4c0a2
style(concurrency): 💄 typo in execute tasks section
rcmoutinho Sep 12, 2019
3ef7e75
feat(file-io): 🎸 paths, translated
rcmoutinho Sep 12, 2019
fea3267
feat(file-io): 🎸 files, translated
rcmoutinho Sep 13, 2019
da0699d
feat(file-io): 🎸 recursive access, translated
rcmoutinho Sep 13, 2019
b74123d
feat(file-io): 🎸 file improvements, translated
rcmoutinho Sep 13, 2019
492aee3
feat(file-io): 🎸 watch service, translated
rcmoutinho Sep 13, 2019
9b60c68
fix(file-io): 🐛 general translation
rcmoutinho Sep 13, 2019
c7dd38c
feat(collections): 🎸 diamond, translated
rcmoutinho Sep 13, 2019
5a0c6cc
feat(collections): 🎸 collections and lambda, translated
rcmoutinho Sep 13, 2019
2bc320e
feat(collections): 🎸 data search, translated
rcmoutinho Sep 13, 2019
da1b2c7
feat(collections): 🎸 calculations, translated
rcmoutinho Sep 13, 2019
731a4ad
feat(collections): 🎸 collection improvements, translated
rcmoutinho Sep 13, 2019
1fecf62
feat(collections): 🎸 merge map, translated
rcmoutinho Sep 13, 2019
a5180b0
fix(collections): 🐛 general translation
rcmoutinho Sep 13, 2019
e6cc540
feat: 🎸 appendix, tricks to succeed, translated
rcmoutinho Sep 13, 2019
e627ba3
feat: 🎸 test yourself, translated
rcmoutinho Sep 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 38 additions & 38 deletions A-tricks-to-succeed.asc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[[A-tricks-to-succeed]]
[appendix]
== Dicas para ter sucesso na prova!
== Tips to succeed in the test!

Além de validar conceitos importantes da linguagem Java a prova de certificação também exigirá que você esteja atento a detalhes específicos nos códigos de cada questão. Sem o auxílio da IDE, você será o compilador.
In addition to validating important Java language concepts, the certification exam will also require you to be aware of specific details in the codes of each question. Without the help of the IDE, you will be the compiler.

Veja alguns exemplos simples que se mostram óbvios mas podem te enganar na hora de marcar a resposta certa.
Here are some simple examples that are obvious but can trick you into marking the right answer.

=== Cenário 1
=== Scenario 1

[source,java]
----
Expand All @@ -19,29 +19,29 @@ class Duke {
}
}
----
. Compila e imprime "Java6"
. Compila e imprime "Java8"
. Não compila
. Compila, mas ocorre um erro durante a execução
. Compile and print "Java6"
. Compile and print "Java8"
. Not compile
. Compiles, but an error occurs while running

Sem pensar muito a reposta seria a _opção 1_, certo? Errado. Olhando mais atentamente ao código é possível notar que na primeira linha do método `main` está faltando um `;` (ponto-e-vírgula). Esse pequeno detalhe mostra que a opção certa é a 3.
Without thinking too much the answer would be _option 1_, right? Wrong. Looking more closely at the code, you can see that the first line of the `main` method is missing a `;` (semicolon). This little detail shows that the right option is 3.

[TIP]
--
Sempre que existir uma resposta falando _código não compila_, verifique duas vezes as regras de compilação antes de testar o comportamento do código e sua possível resposta.
Whenever there is a response saying _code does not compile_, double-check the compilation rules before testing the code's behavior and its possible answer.

.Checklist mental para validar uma compilação
* Ponto-e-vírgula
* Visibilidade
* Escopo de variáveis
* Nomes e parâmetros de métodos
.Mental checklist to validate a build
* Semicolon
* Visibility
* Scope of variables
* Method names and parameters
* ...
--

- - -
_Resposta: 3_
_Answer: 3_

=== Cenário 2
=== Scenario 2

[source,java]
----
Expand All @@ -54,17 +54,17 @@ class Duke {
}
}
----
. O código compila e roda, imprimindo "Java8".
. O código não compila.
. O código compila e roda, imprimindo "Java6".
. O código compila mas dá erro em execução.
. The code compiles and runs, printing "Java8".
. The code does not compile.
. The code compiles and runs, printing "Java6".
. The code compiles but gives error in execution.

Se você escolheu a opção 1, você errou... Esse exemplo tem outra pegadinha com o conceito de _shadowing_. Usa-se o mesmo nome de váriável mas com um escopo diferente. Inicialmente o tipo `int` engana sua reposta mas esse código não compila ao tentar atribuir um valor `int` à uma variável do tipo `String[]`.
If you chose option 1, you got it wrong... This example has another catch with the concept of _shadowing_. The same variable name is used but with a different scope. Initially the `int` type misleads its response but this code does not compile when trying to assign an `int` value to a `String[]` variable.

- - -
_Resposta: 2_
_Answer: 2_

=== Cenário 3
=== Scenario 3

[source,java]
----
Expand All @@ -76,26 +76,26 @@ class Duke {
}
}
----
. Imprime `1`
. Imprime `0`
. Imprime `false`
. Imprime `true`
. Imprime `null`
. Erro de execução
. Não compila
. Print `1`
. Print `0`
. Print false
. Print `true`
. Print `null`
. Execution Error
. Not compile

A escolha mais comum seria a opção 3, onde confirma que o valor padrão de cada posição de um array do tipo _boolean_ é _false_. Esta opção estaria certa, se não fosse uma pegadinha. Este código na verdade *não compila*. A opção certa seria a número 7. Isso porque a variável _dukeClones_ é um _boolean_ simples tentando receber um array do tipo _boolean_.
The most common choice would be option 3, where it confirms that the default value of each position of an array of type _boolean_ is _false_. This option would be right if it wasn't a catch. This code actually *does not compile*. The right option would be number 7. That's because the _dukeClones_ variable is a simple _boolean_ trying to get an array of type _boolean_.

[TIP]
--
Em uma inicialização implícita como membro de uma classe, ou cada posição de um array, etc, a variável recebe o valor padrão respeitando a seguinte regra:
In an implicit initialization as a member of a class, or each position of an array, etc., the variable gets the default value respecting the following rule:

* _boolean_ -> *_false_*
* _char_ -> *vazio*, equivalente a 0
* Primitivos numéricos inteiros -> *0*
* Primitivos numéricos com ponto flutuante -> *0.0*
* Referências (Objetos) -> *_null_*
* _char_ -> *empty*, equivalent to 0
* Integer Numeric Primitives -> *0*
* Floating-point numeric primitives -> *0.0*
* References (Objects) -> *_null_*
--

- - -
_Resposta: 7_
_Answer: 7_
26 changes: 13 additions & 13 deletions B-test-yourself.asc
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[[B-test-yourself]]
[appendix]
== Teste seu conhecimento!
== Test your knowledge!

Hora de colocar em prática tudo que foi visto neste livro. Existem algumas opções gratuitas e várias opções pagas. A opção mais interessante para ambos os casos é a *Whizlabs*.
Time to put into practice everything that has been seen in this book. There are some free options and several paid options. The most interesting option for both cases is *Whizlabs*.

Todos os testes listados abaixo são em inglês, provavelmente o mesmo idioma que você fará seu teste.
All tests listed below are in English, probably the same language as you will be taking your test.

IMPORTANT: Todas as opções são referentes à prova _1Z0-813_ (atualização do Java 6 ou inferior para o Java 8).
IMPORTANT: All options are for test _1Z0-813_ (Java 6 or lower upgrade to Java 8).

=== Gratuito
=== Free

[cols="2*^.^"]
|===
| Link | Qtd. Questões
| Link | Qty. Questions

| https://www.whizlabs.com/ocpjp-8-upgrade-1z0-813/free-test/[Whizlabs]
| 25
Expand All @@ -22,27 +22,27 @@ IMPORTANT: Todas as opções são referentes à prova _1Z0-813_ (atualização d

|===

=== Pagos
=== Paid

[cols="3*^.^"]
|===
| Link | Qtd. Questões | Preço
| Link | Qty. Questions | Price

| https://www.whizlabs.com/ocpjp-8-upgrade-1z0-813/practice-tests/[Whizlabs] *(Recomendado)*
| https://www.whizlabs.com/ocpjp-8-upgrade-1z0-813/practice-tests/[Whizlabs] *(Recommended)*
| 360
| $9.95

| https://www.kaplanittraining.com/certification/oracle/1z0-813[Kaplan IT Training] (30-180 dias)
| ?
| $89

| https://education.oracle.com/certification-epractice-exam-30-day-online-access/courP_2364[Oracle] (30 dias)
| https://education.oracle.com/certification-epractice-exam-30-day-online-access/courP_2364[Oracle] (30 days)
| ?
| R$ 169,00
| $88

| https://education.oracle.com/certification-epractice-exam-180-day-online-access/courP_8737[Oracle] (180 dias)
| https://education.oracle.com/certification-epractice-exam-180-day-online-access/courP_8737[Oracle] (180 days)
| ?
| R$ 290,00
| $129

| https://www.examcollection.com/1z0-813.html[Exam Collection]
| 61
Expand Down
Loading