undefined

Bonus task | Lesson 10 | Level 10

Java Core
Level 10 , Lesson 10
Available

"Hello, Amigo! You've gotten a little soft! Here are your exercises. If you run into difficulties, check with your colleagues. They'll definitely help."

"You did everything already? Well, here are some exercises that are even more difficult:"

undefined
6
Task
Java Core, level 10, lesson 10
Locked
Minimum changes
With minimum code changes, make it possible to serialize the C class.
undefined
12
Task
Java Core, level 10, lesson 10
Locked
Deserialization
Serialized A or B objects are written to the stream that is passed in. Deserialize the object in the getOriginalObject method. If an exception occurs, display a message and return null. Implement the Serializable interface where necessary.
undefined
20
Task
Java Core, level 10, lesson 10
Locked
Find the bugs
For some reason, errors are occurring when serializing/deserializing B objects. Find the problem and fix it. The A class should not implement the Serializable and Externalizable interfaces. There is no error in the B class's signature :). There are no errors in the main method.
undefined
6
Task
Java Core, level 10, lesson 10
Locked
Correct the mistake. Serialization
After deserializing a Solution object, map m was discovered to have no data :( Fix 1 bug.
undefined
6
Task
Java Core, level 10, lesson 10
Locked
Serializing people
Serialize the Person class in the standard way. Add the transient modifier to some fields, if necessary.
undefined
6
Task
Java Core, level 10, lesson 10
Locked
Serialization is prohibited
Block serialization of the SubSolution class using the NotSerializableException. Don't change the method signatures.
undefined
20
Task
Java Core, level 10, lesson 10
Locked
Overriding serialization in a thread
Serializing/deserializing the Solution class doesn't work. Fix the bugs without changing method or class signatures. The main method is not tested. Write the verification code yourself in the main method: 1) create an instance of the Solution class 2) write data to it (writeObject) 3) serialize the
undefined
12
Task
Java Core, level 10, lesson 10
Locked
Making the right conclusion
Arrange calls to the superclass's methods and access modifiers to achieve the following screen output: C class, method2 A class, method2 A class, method1 B class, method1 1. Only one of the superclass's methods can be called from each method. 2. Only one of the class's methods can be called from e
undefined
12
Task
Java Core, level 10, lesson 10
Locked
Introducing graphs
Read the additional materials on serialization of graphs. The Solution class has a directed planar graph containing cycles and loops. For example, http://edu.nstu.ru/courses/saod/images/graph1.gif Serialize Solution. The direction of all of the edges must remain the same.
undefined
20
Task
Java Core, level 10, lesson 10
Locked
Number algorithms
Suppose the number S consists of M digits. For example, if S = 370, then M (the number of digits) = 3 Implement the getNumbers method. Among natural numbers less than N (long), it should find all the numbers satisfying the following criterion: The number S is equal to the sum of its digits raised in the Mth
undefined
12
Task
Java Core, level 10, lesson 10
Locked
Rectangle algorithms
1. Here we have a two-dimensional N*N array that contains several rectangles. 2. The various rectangles do not touch or overlap. 3. The interior of each rectangle is filled with 1s. 4. The array values have the following meaning: 4.1) a[i, j] = 1 if element (i, j) belongs to a rectangle 4.2) a[i, j]
undefined
20
Task
Java Core, level 10, lesson 10
Locked
Word search
1. We have a two-dimensional array that contains lowercase letters. 2. The detectAllWords method must find all the words in the wordSearch array. 3. The element(startX, startY) must correspond to the first letter of the word, while the element(endX, endY) corresponds to the last letter. text is the
Comments (21)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Jurij Thmsn Level 22 Flensburg Germany
5 May 2021
This level demotivated me so much.
梦尽m Level 20 Wuhan China
21 October 2020
Why does my page display lesson not found
Attila Level 25
2 August 2020
Rectangle algorithms : If anyone struggling to interpret the task, like I did: Every single 1 standing alone counts as a Rectangle itself. if they are next to each other, than they make out one bigger rectangle Example 1: 0 1 0 0 : This is 1 Rectangle. Example 2: 1 1 0 0 1 1 0 0 : This is 1 Rectangle Example 3: 1 0 0 0 0 0 1 1 : These are 2 Rectangles.
Manish Sinha Level 26 london United Kingdom
15 July 2020
Find the bugs exercise is really interesting from understanding Serialization point of view. I have invested 8-9 hours to understand it. Now, i understood. People could grab lots of new things in this excercise.
Fadi Alsaidi Level 27 Carrollton TX USA
3 July 2020
Tips for Word Search 1- multidimensional array [rows][Columns] or [y][x] , so it's reversed from the normal x then y or columns then rows 2- must return the same word if found in multiple places. 3- consider overlap of same word. ultimate passing test is using this int[][] wordSearch = new int[][]{ //Y //0 1 2 3 4 5 6 {'f', 'd', 'e', 'r', 'l', 'k', 'x'},// 0 {'u', 's', 'a', 'm', 'e', 'o', 'd'},// 1 {'l', 'n', 'g', 'r', 'o', 'v', 'z'},// 2 {'m', 'l', 'p', 'r', 'r', 'h', 'w'},// 3 {'p', 'o', 'e', 'e', 'a', 'a', 'c'},// 4 {'u', 't', 'a', 'm', 'a', 'a', 'd'},// 5 {'l', 'n', 'g', 'r', 'n', 'a', 'z'},// 6 {'m', 'l', 'p', 'r', 'a', 'a', 'w'},// 7 {'p', 'o', 'e', 'q', 's', 'a', 'c'},// 8 {'f', 'd', 'e', 'r', 'a', 'a', 'x'},// 9 }; detectAllWords(wordSearch, "aa"); /* Expected result aa - (4, 4) - (5, 4) aa - (4, 4) - (4, 5) aa - (4, 4) - (5, 5) aa - (5, 4) - (4, 4) aa - (5, 4) - (5, 5) aa - (5, 4) - (4, 5) aa - (4, 5) - (5, 5) aa - (4, 5) - (4, 4) aa - (4, 5) - (5, 4) aa - (4, 5) - (5, 6) aa - (5, 5) - (4, 5) aa - (5, 5) - (5, 4) aa - (5, 5) - (5, 6) aa - (5, 5) - (4, 4) aa - (5, 6) - (5, 5) aa - (5, 6) - (5, 7) aa - (5, 6) - (4, 5) aa - (5, 6) - (4, 7) aa - (4, 7) - (5, 7) aa - (4, 7) - (5, 6) aa - (4, 7) - (5, 8) aa - (5, 7) - (4, 7) aa - (5, 7) - (5, 6) aa - (5, 7) - (5, 8) aa - (5, 8) - (5, 7) aa - (5, 8) - (5, 9) aa - (5, 8) - (4, 7) aa - (5, 8) - (4, 9) aa - (4, 9) - (5, 9) aa - (4, 9) - (5, 8) aa - (5, 9) - (4, 9) aa - (5, 9) - (5, 8) */
BlueJavaBanana Level 37
12 June 2020
Did anyone else really over think some of these "easy" seriliazation tasks? I've really struggled to understand wtf I'm actually meant to do on some of them and when I see the solution I am like "are you serious?" that's it? Maybe I need more info, anyone got a pointer?
MaGaby2280 Level 31 Guatemala City Guatemala
29 May 2020
Every level you go up, you must pay more attention to details and order of execution, just the most tiny detail can make your code pass verification. Read everything very careful and you should pass ;o)
Thomas Level 27 Bayreuth Germany
26 May 2020
WordSearch was really a heavy one. Done now by 92 students
7 October 2019
Whoa! this was exhausting. Last task done by 29 people so far :O
Hossein Shams Level 26 Atlanta United States
3 October 2019
Although my solution was not complete, it passed the validation! And numbers in validation page are interesting!