What's new in Java Switch | Switch Statement and Expression

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

More Learning :

Рекомендации по теме
Комментарии
Автор

Its good that they have finally updated the switch statement syntax. Not that I had any issue with the previous syntax with break statement but now the arrow syntax definitely makes the code more readable and easier to write. And I just love the fact that they have added the return feature in switch, it makes a lot of things easier😁

ashutoshpalit
Автор

The way you explain is excellent sir. Iam very grateful to you sir.I hope one day I can explain like this to others.

saishiny
Автор

That's the benefit of following Navin sir's videos!
Thank you sir for sharing :)

devanshusachdev
Автор

Love the new switch syntax! Didn't have an issue with the old way as it is more expressive but this new way has certainly grown on me.

shawngardiner
Автор

I like this syntax... Thanks for keep updating us.. i hope you will give such update in future also.

codewithakram
Автор

Love and respect from 🇨🇩🇨🇩🇨🇩 your channel has helped me a lot NAVIN.

MrKoniInTech
Автор

I like the switch updates. Thanks man 👍

minor
Автор

I liked it and felt more relevant than old syntax

santoshram
Автор

Great features. Very informative video. 🔥

raghavsrivastava
Автор

very much liked this new switch case functions

_ankanamajee
Автор

Really good future and thank you for explaining us

buddareddycheppala
Автор

Thank you I like the new update it helps me reduce the amount of text typed when coding.

ashleyleale
Автор

So Amazing teaching style sir thank you🎉🎉🎉🎉🎉

GoogleRalCoderHUB
Автор

00:03 Updated version of switch statement in Java

01:32 Using switch statements in Java

02:55 Application to set alarms based on the day

04:19 Waking up schedule

05:42 Updated version of system.twintellin has new features.

07:04 Assigning a value to a variable instead of printing it directly

08:27 Using switch as an expression

09:51 Java 12 introduces the use of 'yield' instead of 'break' in switch statements

bhanuprakashreddy
Автор

I like the arrow operator, without the "break" statement. I see lots of similarities between C and Java, I am C embedded designer. I am planning to use Java for embedded (small computer forms - Microcontroller based) web servers. In your openion, what is a good Java flavor, library, extension and whatever that best fits for embedded designers? Is there a Java package that is dedicated mainly for embedded (hardware and software) designers? What is a good website that explores those possibilities? I am familiar with Eclipse, Andorid Studio, and many dedicated IDEs that belong to silicon manufacturers and their likes among IDEs - your help is greatly appreciated.

fifaham
Автор

I feel we don't need to put break at the end of case. Next case starting means end of the previous. Hope they remove that break without changing the syntax

maheshBasavaraju
Автор

IT IS very good feature I like this new feature

AbdifitahAbdulkadir
Автор

thank u very much actually it's makes a sense

Myworld-gbrz
Автор

I actually like them both equally as being a beginner i have nothing to do with code optimisation while saving lines

comelodian_corner_
Автор

do we have to write it in a block with there are multiple statements associated with a case

lalit-singh-bisht