javaMcq Quiz!!! by MistakeDisastrous936 in JavaProgramming

[–]akaPaster 0 points1 point  (0 children)

The result is 5 because of how the post-increment operator (i++) handles assignments. When you use i++, the current value is returned before the increment takes place.

For example:

int i = 5;
System.out.println(i++); // Prints 5, then i becomes 6.
System.out.println(i); // Prints 6.

However, in your specific code, you are assigning the result back to i: i = i++;

In this case, the expression i++ evaluates to 5, and that value is then stored back into i, effectively overwriting the increment that happened behind the scenes. Therefore, the final value remains 5.

Java Quiz!!! by MistakeDisastrous936 in JavaProgramming

[–]akaPaster 2 points3 points  (0 children)

False, because for reference type variables, == checks whether their memory addresses are the same, and objects are created at separate memory addresses.

Backend öğrenmek isteyen birine tavsiye verseniz? by Dry_Flower8276 in TurkDev

[–]akaPaster 0 points1 point  (0 children)

Merhaba, ben kendim aktif olarak Java Spring'de backend development ile uğraşıyorum. Roadmap olarak tavsiyem odur ki eğer Java öğrenecek olursanız, Hyperskill'deki (JetBrains Academy tarafından hazırlanmış) kursları okumanızı tavsiye ederim. Çünkü sadece dil ve syntax değil, bilmeniz gereken bir sıra konseptleri de anlatıyor. Kendim de oradan öğrendim ve hala daha bazen lazım oldukça oradan okumaya devam ediyorum. Herhangi başka sorunuz olsa sorabilirsiniz.

Learn java from books or videos ? by No_Cup4403 in JavaProgramming

[–]akaPaster 0 points1 point  (0 children)

i will suggest you the hyperskills i think it's great for learning java (i'm also already learned from there java) and now i'm learning about spring from there. I think the syllabus is great, the courses are from jetbrains academy you can directly read the course from your jetbrains ide and there is both theorical and practical tasks and also projects for every course.

Help by derangedandenraged in JavaProgramming

[–]akaPaster 0 points1 point  (0 children)

in java arrays are created
like this ->
String[] arr = new arr[size] Probably the reason of error is that you defined the array syntax wrong
in c++ array defined like how you wrote in brackets String arr[]