Since it was accepted by Java SE 8 Silver, I will introduce various things

Since this is my first post, I'm a little imitating how to write here.

result

First of all, the test results

--Score rate 91%

I think it's a good one for middle 2 (probably)

difficulty

I had the impression that there were many questions asking if I could understand the basics to the depths. So, if you still don't understand the basic syntax of Java, object thinking, and basic usage of lambda expressions, you can finish dot install for the time being. I think it's good.

Teaching materials used

-Thorough capture Java SE 8 Silver problem collection If you read the explanation of this and understand why such an answer is given, you will be able to pass.

How to study

Each time you solve it, mark the problem if it corresponds to any of [wrong, accidental, lost].

--For the time being, the first lap (correct answer rate of about 45%) using the gap time such as the travel time by train when going to school --Redo what you made a mistake on the first lap ――Do the second lap (correct answer rate is about 70%) --Redo what you made a mistake on the second lap -Final confirmation of the marked problems will be focused on (there are some important points in the explanation, so read them as well. For example, a list of types and regular expressions that can be included in the switch statement. Table etc.)

that's all

What I was aware of during the exam

I will summarize what I was always aware of.

--Calmly check the program execution order --Is the entry point set to public static void main (String [] args) {}? --Check the modifiers of the fields and methods you are accessing --Where is the reference to that object? --Are there any unreachable code? --Does NullPointerException occur? --Diversity, can the cast be executed correctly? --Whether it is an immutable object --Can the constructor be executed correctly?

test time

The exam time is 2 hours and 30 minutes and 77 questions, so I have a lot of time to spare (I finished in 1 hour). So, don't worry about the time, I think you should solve it carefully without making any mistakes.

example

The problem that left an impression on me in the book is something like this

Main.java


public class Main {
	public static void main(String[] args){
		int i=0;
		while(i++<1) {
			++i;
		}
		System.out.println(i);
	}
}
What is displayed Answer: 3 If you answer 0, you're stuck. ʻI = i + 1` is set when determining whether ʻi ++ <1`. If you answered 1, let's understand the post-increment. The explanation is [here](http://blog.o-kay.biz/?p=349) If you answered 2, you have a good line. I was like this at first. At first, I noticed that ʻi = i + 1` when ʻi ++ <1`, but after finishing the processing in while, I made the judgment of ʻi ++ <1` again. This is also ʻi = i + 1`, and ʻi = 3`. Don't let your guard down until the end.

Difficult problem at the level

Main.java


public class Main{
	public static void main(String[] args){
		Sample s=new SubSample();
		s.test("Hello");
	}
}

interface Sample {
	void test(String s);
}

class SubSample implements Sample{
	void test(String s) {
		System.out.println(s+"!");
	}
}

When you run ...

A: Hello! Is displayed B: Compile error occurs in Main class C: Sample interface causes compilation error D: SubSample class causes compilation error E: Exception throws at runtime

Answer Answer: D If you answered A, understand the detailed specifications of the interface. I also chose this at first. When a class overrides a method during inheritance, the method qualifier cannot be stricter than the superclass method qualifier. Also, if there is no qualifier, the interface method will be in the state with public attached without permission. Based on that, the qualifier of the test method is public in the Sample interface, but in the SubSample class that implements it, the qualifier of the test method is absent, and the qualifier is stricter, so a compile error occurs. If you choose B, understand diversity. The explanation is [here](http://blog.o-kay.biz/?p=349) If you choose C, understand the interface. The explanation is [here](https://www.sejuku.net/blog/25772) If you choose E, make sure you can tell if it's a compilation error or an exception. The exception is the image of eating katsudon with ketchup (I don't know if it looks delicious or not, but it tasted bad). The compilation error is the image of eating katsudon with vinegar (it looks bad). I understand). I'm sorry for those who have become more difficult to understand (laughs)

Please be assured even if all the questions are incorrect so far. Sometimes you'll have problems like this, and sometimes you'll simply ask if you understand the basic syntax. All of these problems are listed in the black book, so if you understand the black book well, you will be able to answer it correctly.

application

I applied after seeing here. CertView didn't have any problem if I went right after. The test results will be returned in haste. I came back while I left the venue and went to the bathroom.

Recommended Posts

Since it was accepted by Java SE 8 Silver, I will introduce various things
Recorded because it was accepted by Oracle Java Silver
Java SE 8 Silver (Java SE 8 Programmer I) Pass Note
The story received by Java SE11 silver
[Swift] Various things I learned by implementing Realm
I took Oracle Java Bronze SE 7/8 now, so I will write it as an article
I passed Ruby Silver (June 2020), so I will summarize it.
Passed Java SE8 Silver
[java] Java SE 8 Silver Note
Java SE 13 (JSR388) has been released so I tried it