Now I am preparing for an interview, which will be in a week, and as far as I know in that company they love to ask tricky questions on various Java SE topics, I delve into the collections for the third week, exceptions, streams, syntax, objects and inheritance, but I feel that the roof travels from constant reading, I want practice to fix, I will be grateful if someone can recommend an alternative way of reaching satori or a practical task. My Junior level, experience about half a year, tasks like sorting, recursion, Fibonacci numbers are not interesting, I already passed it a long time ago. I want to dig deeper into streams, collections, AND \ O.
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer to the participants of DeKaNszn , fori1ton , Zelta , velikodniy , PashaPash ♦ 21 Apr '15 at 8:12 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
- ... uh ... well, practice and only practice ... watch the sources ... move in ... streams and collections themselves are not complicated, especially in Java. In principle, from the collections: ArrayList, HashMap, HashSet, well, the threads just need to remember and understand the synchronization ... In a nutshell, of course, do not tell. But I think the Junior level with you especially take nothing. Personally, from my own experience, I can say that the employer is interested in more frameworks, not so much knowledge as understanding as well, in short: habrahabr.ru/post/132241 habrahabr.ru/post/162017 habrahabr.ru/post/164487 + SQL He is nowhere - JEcho
2 answers
Try to implement the elements of functional programming. For example, take C #. Make predicates , create your collections that implement at least some of what a List C # can do . For starters, Find , FindAll , ForEach , some of the extension methods ( Where , Max , Sum , etc.). Write your Map and Reduce . Make these methods " lazy " and, if possible, parallel. For predicates, try implementing currying .
The task is certainly not trivial, but it will help you to pump your skills. For inspiration, you can take a look at the Functional Java library.
- one1 - why C # 2 - why?) - JEcho
- 1. A matter of taste. I personally really like these chips for Sharpov collections. 2. Just for fun) The author wanted to practice with collections and streams - I proposed a non-trivial task that would require knowledge of both. - fori1ton
- 1. just a question about Java 2. Collections, not the best place for cycling, at least worth it: 2.1. read and understand Knut 2.2. Know how Java works to make something more optimal than suggested. Personally, I think it is better to perform more applied tasks, for example: read a text file and zip-save it in a database, for example. more will be confusing - JEcho
- 1. The answer is also about Java. If we omit the details, then my answer was: "implement a cool C # tweak from Java" 2. I did not set the task to write this optimally. For nchala you can write so that it just works, then, if you wish, dig deeper. Yes, the database is important and useful. I agree with your comments on the question - frameworks need to be known at least superficially. I just suggested an interesting task for self-improvement. - fori1ton
- um ... and fun for the sake of .. I don’t dispute your approach, it’s interesting to everyone ... it’s just time to spend, but there’s not a lot of result .. + there are similar features in Java. Just for an interview, in a week, they won't appreciate it) - JEcho
If I were you, I would look at the variety of Open Source projects and choose one that I like. I would find a bugtracker on the project’s page and, having opened it, began to enjoy the fact that I help people and solve specific combat missions.
- I consider myself not experienced enough for this, but why not try it, thanks! - bearshunter