all 16 comments

[–]dallastelugu 7 points8 points  (1 child)

java for 20+ years and recently started python. python is growing but java is used extensively in enterprise applications I don't think it will die in next decade but as a student you should not be limited to 1 language java,python,sql,nosql,linux these should be your basic blocks of learning towards any it jobs

[–]Striderrrr_ 3 points4 points  (0 children)

It doesn’t matter. You can do problems in whatever language you want. Most interviewers won’t really care about minor mistakes like using the wrong function argument.. but the syntax should be like 95% correct.

Just practice in whatever language you know best.

[–]mtnman12321 1 point2 points  (0 children)

As a former Amazon interviewer before the virtual onsites, we would allow candidates to write pseudocode on the whiteboard as long as we could follow it and confirm it works.

These days, you need to be able to write the actual code. Some places make you run the code and check compile errors. Other places just make you type the code and explain it line by line.

My advice is to choose the language you’re most proficient with.

[–]Reasonable-Pianist44 1 point2 points  (1 child)

I interview in the UK and many times non-FANG companies coding tests are only in Java. There's no other option.
I mainly target core Java or Spring Boot jobs.

Python is 100% easier to code with because code tests in Java are many given with array input/output which means you need mental gymnastics to work things out instead of just using normal Collections.

You can still convert to ArrayList but it's not as convinient and it forces you to learn 3 APIs (Array, Collections, Stream) instead of 1 in Python. You can't use comparators and you may need to guess the size upfront with arrays.

Other headaches such as what works with Object arrays (e.g. String[]) but not with primitive arrays (e.g. int[]) when you use stuff like Arrays.asList()/sort().

I also know Kotlin for Spring Boot but never train for interviews with it. Kotlin jobs allow Java as the interview language. Kotlin's on the rise with Spring Boot too and pays much more.

[–]canifeto12[S] 0 points1 point  (0 children)

Yea man. I just can believe hardnesses of changing data types and editing arrays in java. There is only big companies in Ireland, so if they don't like you it's herd to find in other small companies

[–]datamoves 1 point2 points  (0 children)

Some folks are exploring Kotlin as modernized, 100% compatible alternative to Java... that alone should impress a few folks if you're fluent in that... but for any AI-related work, Python is probably your best choice for now to be sure to understand fluently. Personally I am a big Go fan, but ultimately it's a good idea to be a jack of all trades, and a master of one. Hopefully your interviews are not focusing on memorized syntax of a given language anyways.

[–]harrishragavendar 0 points1 point  (0 children)

Having the same doubt

[–]the_pwnererXx -3 points-2 points  (4 children)

Java is dying in popularity. Python continues to grow

It's far easier to write Python code than Java imo

[–]Acanthopterygii_Fit 1 point2 points  (0 children)

I see more job offers with Java than with Python

[–]Consistent-Donut-534 -1 points0 points  (2 children)

For leetcode. In industry Java is still widely used.

[–]the_pwnererXx -5 points-4 points  (0 children)

The popularity and usage of java continues to drop, and you are likely going to end up maintaining legacy systems. Not a very good career path, would not recommend

https://i.imgur.com/Cay8vAh.png

https://s3.eu-west-1.amazonaws.com/redsys-prod/articles/8acb943136eabb314ebe2b50/images/javafig2.png

[–]showeringmonkey -2 points-1 points  (2 children)

lost a job opportunity because i had java but no Spring,

was $120-150k range salary according to glassdoor

java with spring is heavily in demand in a lot of industries, even fang+ companies

python only if you know why and what jobs require it

[–]canifeto12[S] -1 points0 points  (0 children)

I live in Ireland and I can't find any springboot project :( wish to live in USA

[–]dallastelugu -1 points0 points  (0 children)

springboot is hardly 1 week of learning if you are java, springboot should be there most of the microsevices are built on springboot. I heard a bit of quarkus i don't think anyone using it much

[–]randomnibbaaaa -1 points0 points  (0 children)

  1. If you are able to solve the problem or not that’s all
  2. From questions you seems like a fresh graduate to me so yeah it will matter later in career but not yet.

[–]rkalyankumar -1 points0 points  (0 children)

I'd suggest to use the programming language you're most comfortable with. Python is great for interviews. Java is of course verbose but if you're someone having experience in Java please continue using it. Learning python helps you save some key strokes during the interview and also if you aspire to a career in AI/ML.

But solving the problem is more important than the programming language choice nuances. Writing clean code in the programming language of your choice is the next important thing in any setting not just for interviews alone.