Welcome Brian!
Any more or less modern PC will work, as long as you can boot Windows 10 OS, you are good.
Java SE does not require much memory or fast CPU.
Sorry to hear that.
In the past I heard this failure may happen if you have some background application running and which Oracle software unable to kill.
In particular in was DropBox syncing application. Would be better have a clean OS without much software. I know it's too late to give such advice. ;(
I would say there is a big difference between stream and stream pipeline ;)
Stream is an approach to access data stored in some backed storage (collection, file, generator)
Pipeline -- consists of a stream, zero or more intermediate operation, and exactly one terminal operation.
The new line after "b" is surely counted, and length supposed to be 6
[UPDATE] After re-reading I see you also mentions "space before a"
There is no space before a, it removed as the c is on the same position.
The plain string is like that: "a\n[space]b\nc"
I may be wrong, but my understanding is: each operand is evaluated from left to right
So it will be like
4 (x pre-incremented and evaluated to 4 and x=4 after that) * 5 / 4 (evaluated to 4, and x=3 after post decrement) + 2 (as x=3 and pre-decremented before evaluating, and x = 2 after that)
which gives
4 * 5 / 4 + 2 = 7
and x = 2 (basically 3, incremented once, decremented twice)
Stephan I think you're wrong, and Albert is right.
This is a common mistake, string pool stored in Java heap memory starting with Java 7, and here 4 objects are eligible.
x is initially 10 (passed in from the main method)
then x is reassigned 4 then end is assigned 4 and stored as final instance variable
The rest should be clear.
It's a bad practice reassign passed in parameters, and you can declare them final in method declaration to avoid such problems, but the exam is not about good coding style, it may show you horrible tricky code which you will never want to use in your work.