r/code • • Jan 30 '25

Java Is java not pass by reference?

2 Upvotes

As per what I know when i pass some parameters to a function they get modified. but in docs it says java is pass by value. I am not getting it.

Also I watched this video: https://www.youtube.com/watch?v=HSPQFWEjwR8&ab_channel=SumoCode

but I am not getting it. can anyone explain

r/code • • Oct 06 '26

Java OOP vs. Data-Oriented Programming: Which One to Choose?

Thumbnail
youtu.be
3 Upvotes

r/code • • Apr 12 '22

Java i'm new to java and i don't know what to do

3 Upvotes

I've been java for 3 days with . It was my first contact with a programming language and I'm enjoying it. I'm still on the super basic "ifs and elses".

I wanted project tips to do in java to gain experience for the portfolio. I don't plan on getting my first job fast, but it would be nice to get one. I live in Brazil.

I accept any tips on how to gain experience for a portfolio, I don't mind the difficulty. I can't think of any java projects, probably because I don't know anything about programming yet

r/code • • Oct 18 '26

Java Java sealed classes and exhaustive pattern matching

Thumbnail
neilmadden.blog
5 Upvotes

r/code • • Aug 09 '26

Java myJavaCodes

Thumbnail
github.com
2 Upvotes

Check it my Java codes on my GitHub repository.

r/code • • Jan 19 '24

Java Help- Confused and using Java

4 Upvotes

Hi hello So I need help with this the assignment. It asks for you to make code and have it flip a coin a set number of times and then print out the longest streak it had for heads

*Edit* here is my code

my code

I made the code and it worked for 3 of the "test code" but the forth one is different it prints it a bunch of times and gets a streak of 11

the test

but when it runs my code it only comes up with 6 Can someone help me

My test

r/code • • Feb 01 '21

Java Learn about spring boot advice and their usage.

Thumbnail
gallery
1 Upvotes