r/learnjava • • Apr 07 '20

What are the most applicable java topics in the real world/ most common in real world work projects?

I’ve seen that array list and hashmaps are must knows and are used commonly in the professional java field, are there any other topics such as these used commonly in the real world ? specific topics or packages ?

Also how are they used to their full potential ? I can create and add and edit an array list and hash map however i know they are very powerful, how can i use them more effectively?

58 Upvotes

13 comments sorted by

12

u/Kambz22 Apr 07 '20

In addition to what has been said

Creating and consuming REST calls

Hibernate

Collections in general.

Streams

11

u/borgy_t Apr 07 '20

in my work experience, aside from what you mentioned i've encountered a considerable amount of the following:

sets

iteration

static methods and instances

JDBC

file parsing

10

u/sbhandari Apr 07 '20

logging and exception handling for any project

4

u/Kambz22 Apr 07 '20

I forgot this one. The sooner you engrave logging into your brain the more your coworkers and even yourself will be thankful for it. When first creating something, I log so much stuff, some may become overkill, but the greatly reduces debugging time.

8

u/willOfIshball Apr 07 '20

May want to learn a framework such as Spring. Look into polymorphism and how to write clean code.

7

u/Nephyst Apr 07 '20

Knowledge I would consider fundamental when hiring a junior level java developer:

Programming fundamentals. Loops, variables and data types, memory usage, program stacks, switch statements, lambas, solid understanding of git and using feature branches, exceptions and exception handling, ...

Java fundamentals. The difference between == and .equals(), what the java stack and queue are and how they are used, understanding that everything is pass-by-value in java (including references), garbage collection and a brief idea of how it works, ...

Decent understanding of all the java data structures: Array, List, Map, Queue, Stack, Heap, Set, Enum; as well as the common implementations of each: HashMap, HashSet, TreeSet, PriorityQueue, ...

Decent understanding of problem solving and algorithms. This is the kind of stuff that would be asked during a standard white-boarding interview, and you can and should practice this stuff often.

A very basic understand of Big-O notation. Understanding the difference between an algorithm that runs in O(log n) time vs O(n) vs O(n log n) vs O(n2). You don't need to get deep into the math, but you shouldn't be confused if I ask what the run-time complexity of an algorithm or function.

Experience with at least a few parts of Spring framework, at least one relational database and one object database, building REST APIs, understanding dependency-injection, unit testing with mocks.

So, you should be able to build a simple REST API that stores data in a database and another one that queries the data and returns it back to the user.

6

u/GuyWithLag Apr 07 '20
  • You're thinking too small.

  • You need to be able to learn new things on the go

  • You need to be able to find which things to learn

2

u/TheNarfanator Apr 07 '20

How long is on the go? 2 weeks? A month?

4

u/GuyWithLag Apr 07 '20

Today:

  • PM: Hey, we'll need to send a message to Kafka when X happens.

  • Me: (fuck, does he want me to SMS the writer?) I need to do some digging, will let you know tomorrow.

Tomorrow:

  • I need to investigate more, but sending a JSON to a specific topic should be relatively straightforward. Can you provide me the schema and the mappings? Also, I'll need to connect with our Kafka folks to get access, do you have a contact?

3

u/Great_Battoman Apr 07 '20

!remindme 300 days

2

u/RemindMeBot Apr 07 '20

I will be messaging you in 9 months on 2021-02-01 08:59:48 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

5

u/Wadix9000f Apr 07 '20

In no particular order

Spring transaction, Jax-RS /SOAP, Exceptions, Collections

8

u/Leonwai Apr 07 '20

Lambda expression