r/learnjava • • Jul 27 '20

Need to learn Java within a week

Hi guys, a company I'm interested to join has asked me to take up a competitive programming test in Java. However, my main programming language of choice is Python. I'm not new to programming, I've been doing it consistently for college for the past 4 years but I've always dodged Java. Now the time has come to actually learn Java but the problem is I only have a week to take up the test. Could you guys please point me towards some resource(s) that I can use to cram as much Java as I can within a week's time?

Note: I don't need to be able to develop GUIs or anything. The goal is to just be competent in their programming test.

114 Upvotes

50 comments sorted by

63

u/Killlllerboy Jul 27 '20

10

u/GrimReaper1337 Jul 27 '20

I'll check this out. Thanks a lot!

10

u/LTFGamut Jul 27 '20

13

u/mikupoiss Jul 27 '20

The problem with this course is (although a Python dev should not worry) - while being very good - that it's absolutely massive and presented in semi-academic way. It also relies heavily on previous excercises instead of asking different solutions for similar tasks (different tasks improve actual understanding imo).

That's why I put it aside at around 15% completion and started the Helsinki course, which I am really enjoying. Helsinki however makes it a tad bit harder to get feedback in case of being stuck.

7

u/GrimReaper1337 Jul 27 '20

Yeah, I noticed how massive the whole course was! This sub seems to have a lot of advocates for the Helsinki course, so finding someone to help us out if we get stuck shouldn't be a problem...I think!?

4

u/mikupoiss Jul 27 '20

Sure, this sub is very helpful but take me - I have roughly 2 hrs a day at max to study after work (unless I'm exhausted already) so even this can be a minor problem.

Overall the course is very good for a complete noob like me and so far I have had trouble with my own typos rather than the code itself.

4

u/GrimReaper1337 Jul 27 '20

I understand, must be hard to study after work...but don't give up. I wish you the very best of luck on your journey to learn Java! πŸ˜πŸ‘πŸ½

3

u/mikupoiss Jul 27 '20

Thank you!

1

u/GrimReaper1337 Jul 27 '20

Thank you! I'll look into this.

19

u/desrtfx Jul 27 '20

Exactly that. Was going to recommend the same.

2

u/tridiumcontrols Jul 27 '20

This... can’t be said enough. Very well done.

18

u/Stack_Canary Jul 27 '20

One of the best ways to learn a new language is to solve exercises and typical code interview questions with the new language. I highly recommend you just start solving problems at i.e., https://leetcode.com/problemset/all/. If you are familiar with coding, basic math and some algorithms from college, you may have an idea how to solve the problems, and what remains then is googling how to do them in Java. This will also get you accustomed to typical programming tests.

I might've suggested something else of you wanted to learn full stack Java development with typical project work, but in your case I think this is a really good approach.

Either way, good luck!

5

u/GrimReaper1337 Jul 27 '20

This is solid advice! I agree solving exercises will get me accustomed to the kinds of things in Java that I'll need to use for the real thing. Thanks a lot for this!

1

u/adil62 Aug 24 '20

Please explain basic math

12

u/zielu Jul 27 '20

Try https://hyperskill.org/ - it's platform from JetBrains that offers free courses with basic and project completion. Also I wish you best of luck and hope you manage to pass the test!

1

u/GrimReaper1337 Jul 27 '20

This looks cool but I don't think the course is free. Anyway, I might give this a shot later today and see how it is. Thanks a lot for the recommendation and the wish! :)

2

u/[deleted] Jul 27 '20

Its free until Jan 2021, the free trial is until their paid subscription starts then!

3

u/GrimReaper1337 Jul 27 '20

Okay, thank you for letting me know about that!

2

u/zielu Jul 27 '20

Sorry i forgot to mention the time limit ;)

4

u/theAviCaster Jul 27 '20

If it's a competitive programming test focusing on DSA and you're conversant with solving them through Python, I guess you could check out the syntax and you're mostly good to go.

1

u/GrimReaper1337 Jul 27 '20

Yes, this seems like the most sensible thing to do right now. That syntax cheat-sheet is super duper useful for me! Thank you very very much!!

3

u/[deleted] Jul 27 '20

Since you're already proficient in Python, probably it would be best to try to translate your Python code into Java.

3

u/GrimReaper1337 Jul 27 '20

Concept-wise? Yes. I understand the basic concepts are transferable but solving a challenge in Python and then constantly looking up how to translate it into Java would take a lot of time! This is a time-constrained test so...I don't think this is a good idea unless there's some automated Python to Java translator 🧐

2

u/[deleted] Jul 27 '20

I was thinking that you already have some coding tasks solved in Python. So, you would only have to translate it. Even so, perhaps, another good idea for this particular situation would be to look into algorithms and see the solution to have a grasp of the language.

2

u/GrimReaper1337 Jul 27 '20

Yes, that's a great idea! That way I can learn the language efficiently..thanks a lot!

3

u/Rabestro Jul 27 '20 edited Jul 27 '20

If you would like to check Hyperskill take into account that by default they offer only 7 days for free. There is my ref-link where you can get 5 free months.

https://hyperskill.org/join/dee0c003

Hyperskill has a very good structured knowledge base for Java & Python. I recommend to check out this resource.

Currently they have 357 topics in Java Track including Spring Boot and Scala. You can skip all unnecessary topics and study only important ones.

Each topic is appropriate two pages of text plus five short quizzes or exercises.

I started to study Java track about 5 months ago and completed 75% of topics. I’ve completed 15 projects and 1666 problems at the moment.

It is interesting for me how much you can study for a week.

1

u/GrimReaper1337 Jul 27 '20

This seems like a lot of stuff to cover within a week, so I think I'll pass on this for now but thank you very much for suggesting this to me!

2

u/Rabestro Jul 27 '20

There are many one-day courses for Java. For a quick overview of a new computer language I can suggest to check this (as an example): https://www.sololearn.com/Course/Java/

I’ve completed about ten courses at this site. Each course you can pass in a day. The site is optimized for using it from mobile phone or iPad. The main benefit for me is sand box (iPad) for many programming languages.

1

u/GrimReaper1337 Jul 27 '20

This looks interesting..thank you for sharing this resource!! :)

2

u/King5lay3r Jul 27 '20

Theres a course named "java for complete beginners" On Udemy. Check it out its great

1

u/GrimReaper1337 Jul 27 '20

Okay, thank you very much for the recommendation. I'll check it out!

2

u/provingfail86 Jul 27 '20

I recommend this: resource

1

u/GrimReaper1337 Jul 27 '20

Thank you very much, I'll look into this!

2

u/flying_5loths Jul 27 '20

1

u/GrimReaper1337 Jul 27 '20

That's a lot of stuff to go through..but thanks for sharing this...I might use it later when I'm learning Java properly!

2

u/rifatiyaan007 Jul 27 '20 edited Jul 27 '20

Before doing any read-practice based thing like university of helsinki MOOC, I will suggest you to just watch and go through videos of Caleb Curry in YouTube. He has a 6 hours long video of core java. Just go through it, type some code along with it. His voice is so soothing, you won't be bored.

1

u/GrimReaper1337 Jul 27 '20

Wow...you were not kidding...the dude really has a soothing voice! πŸ˜‚ Thank you for this...just found a new YouTuber to subscribe to! The course content seems very thorough as well...so that's good...thanks!

2

u/Raul_98 Jul 27 '20

Competitive programming tests usually accepts many programming languages. Most people prefer c++ or python over java.

1

u/GrimReaper1337 Jul 27 '20

Exactly what I asked the HR and she just got back saying they only use Java and C++ internally...so I could take up the test in C++ if I wanted to...but I just stuck to Java for now. I would've loved to take the test up with Python!

2

u/asphendiyar Jul 27 '20

I can strongly recommend you YouTube channel Alex Lee. https://www.youtube.com/channel/UC_fFL5jgoCOrwAVoM_fBYwA Yes, video-tutarials might be not useful, but his tutorials sooo understandable. He teaches Java in different way. There are 2 playlists for beginners. I had same situation too and I hope this will be helpful. Good luck anyway

1

u/GrimReaper1337 Jul 27 '20

Thank you very much!

2

u/CyreX1010 Jul 27 '20

I think.if you are already aware of core concepts of programming uou only need to quickly learn java syntax and some of the constraints, javatpoint.com cam give you avery quick.overview of java syntax, plus you should look for cheatsheets where you can see programs in java and python aide by side.

This works only if the test is based on java and you can focus mose on algo and python coding in interviews. If interview is strictly java based i will suggest to give it your best shot and don't dishearten if it doesn't go as planned.

geeksforgeeks.org is another good resource.

1

u/GrimReaper1337 Jul 27 '20

Yes, thank you for the kind words. I am not very optimistic about this test but I still want to give it my best shot. At least by the end, I'll know some basic Java. πŸ˜… Thank you for suggesting those resources, I guess they'll be excellent reference material (when I want to look something up very quickly.)

3

u/JudoboyWalex Jul 27 '20

If you only have one week then I would suggest like youtuber Clement says learn the language by solving hackerrank style questions. Hackerrank actually has java course. If you are stuck with syntax then google. Start with easy level to get the feel of language.

1

u/GrimReaper1337 Jul 27 '20

Thank you very much for this! :)

2

u/r1ng_0 Jul 27 '20

This post explains every Java application I have ever used.

1

u/Rayovaclife Aug 24 '20

so, how do it go?

0

u/[deleted] Jul 27 '20

[deleted]

2

u/GrimReaper1337 Jul 27 '20

Haha! I agree...I'm obsessed with Python! I would love to get a job with Python but as a fresher right out of college, and with the current pandemic situation, getting a job is reaaaalllllyyyyy hard! I'd do anything to land a job right now and that's why I agreed to take this test up in Java!