Тёмный

Tricky Java Interview Question: Can We Execute Comments in Java? || Unicode carriage return 

Naveen AutomationLabs
Подписаться 390 тыс.
Просмотров 21 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 58   
@naveenautomationlabs
@naveenautomationlabs 3 года назад
In this video, I did a small mistake, println() method will generate a new line, not the Unicode carraige return character.
@Bbangaram-d9u
@Bbangaram-d9u 3 года назад
Learning every day something new because of you Naveen Sir ..thank you 🙏
@NileshKumar-jy6di
@NileshKumar-jy6di 3 года назад
@Naveen Sir Please post Java 8 concepts and tricky interview questions video as well. That would be really helpful. Thanks 😊
@skb7198
@skb7198 3 года назад
Excellent, awesome... I think I am at the right place to learn newest content everyday... You are a genius 👏
@supriyassampath1419
@supriyassampath1419 3 года назад
Thank you so much for bringing all new concepts here to learn.. watching your videos are like meditation.. feel like learning more and more.. thank you so very much🙏
@User-eu3el
@User-eu3el 3 года назад
Thank you Naveen Sir for sending the most important questions helpful during the interview everyday.
@mechaelbrun-kestler3868
@mechaelbrun-kestler3868 3 года назад
Neat, Im going to assume that \u000d is NULL is it confuses the interpreter into thinking that the string has been split up
@shilpak2007
@shilpak2007 3 года назад
Hi Naveen, Pls Suggest for 5+ yr experienced, Test Lead Role is better or Sr Automation Engineer Role?
@immortalhuman7085
@immortalhuman7085 3 года назад
This is carriage return which is parsed at runtime Condition is you have to pass valid java statement after \u000d otherwise u will get exception
@jakedotnet
@jakedotnet 3 года назад
it isn't parsed at runtime. it's picked up as a carriage return by the lexer even before compile time.
@abdulazeem1936
@abdulazeem1936 2 года назад
Naveen thanks for the informative video i have a query what if we use \u000d //System.out.println("Naveen AutomationLabs"); will it take as new line comment?
@vinith2320
@vinith2320 3 года назад
Thank you naveen ❤️
@inshortlaughs1816
@inshortlaughs1816 3 года назад
How do you get such ideas Sir.Such a fabulous questions.
@smitapawar4576
@smitapawar4576 3 года назад
Thank you so much sir.. learn new things.
@sriramkukkadapu
@sriramkukkadapu 3 года назад
Can we xecute without using this carriage return ? That would be my interview question :) After seeing this video
@victor3848
@victor3848 3 года назад
Keep up your good work naveen
@hindi-english1664
@hindi-english1664 3 года назад
👌
@naveenrajan1310
@naveenrajan1310 3 года назад
What is practical use of this Unicode carriage return in automation programming
@naveenautomationlabs
@naveenautomationlabs 3 года назад
No as such. Dont expect every concept can be used in automation.
@naveenrajan1310
@naveenrajan1310 3 года назад
@@naveenautomationlabs Thanks for clarification
@sateeshkumar1145
@sateeshkumar1145 3 года назад
@@naveenautomationlabs but what is use of such feature in general if I am adding a comment, it is clear that I want ide to ignore it
@rushikeshbankar8250
@rushikeshbankar8250 3 года назад
@@sateeshkumar1145 for interview purposes...this type of question is one that separates u from others...
@anmolsandal3454
@anmolsandal3454 3 года назад
Thanku sir for this amazing series
@mandeep3445
@mandeep3445 3 года назад
Brilliant!!!
@SelvaKumar-ok7lt
@SelvaKumar-ok7lt 3 года назад
really amazing
@manjunathramanaik6061
@manjunathramanaik6061 3 года назад
Thank you
@pokegamerspoint6577
@pokegamerspoint6577 3 года назад
Thanks for this
@ankursatija4489
@ankursatija4489 3 года назад
Hello Naveen Java
@saurabhkabra8283
@saurabhkabra8283 3 года назад
Thanks 😊
@sunnyjain630
@sunnyjain630 3 года назад
Thanks sir
@ece03abhisheksrivastava64
@ece03abhisheksrivastava64 3 года назад
What if we use */ ascii codes Will this work for multiline comment
@arpanmehta5916
@arpanmehta5916 3 года назад
Thanks a lot for this One More thing to mention if you write any garbage comments after the unicode characters the errors will be thrown at runtime e.g. // This is comment \u000d fdfdfhdf;
@surajkumar-po4jc
@surajkumar-po4jc 3 года назад
Bro!!! You have already mentioned println. I think there is no use of printing the \u000d. I got a doubt by watching this video. If i want to print System.out.println(System.out.println("hi")); What is the answer and how compiler going through? Sorry brother if I'm wasting your time by asking this question
@naveenautomationlabs
@naveenautomationlabs 3 года назад
This is not a right question btw :) System.out.println is not applicable for any void argument. This will give you compiler error.
@AmitKumar-bb8gn
@AmitKumar-bb8gn 3 года назад
It's wrongly explained. New line is coming because of println. That ln creates a new line... Instead if you use System.out.print, your understanding will be totally wrong in that case
@misterg4548
@misterg4548 3 года назад
I commented on this issue already earlier today and my comment was removed. I'm guessing yours will be too. Naveen doesn't like to be corrected. :) EDIT: apparently YouToube removed my comment, not Naveen.
@AmitKumar-bb8gn
@AmitKumar-bb8gn 3 года назад
@@misterg4548 every one gets wrong somewhere... People should take it positively and correct themselves.
@misterg4548
@misterg4548 3 года назад
@@AmitKumar-bb8gn I agree. And I think correcting yourself is even more important, if you are educating others. At least add a note in the existing video, RU-vid has that option.
@AmitKumar-bb8gn
@AmitKumar-bb8gn 3 года назад
@@misterg4548 totally agree... Learning is always there.. And correcting oneself and spread correct information is much more important
@naveenautomationlabs
@naveenautomationlabs 3 года назад
Hold on guys, we never remove any comments until it's spam. Your comment was in for review by youtube and it got auto removed. These days there are 100s of comments we get and youtube mark them for spam or under review. So have some patience, don't be so judgement here :). And yes that new line is coming coz of println that I realised after uploading the video. Thanks for mentioning that. The same is clearly mentioned there in description of the video and the pinned comment. But let's not assume, we always encourage correcting the mistakes and new learning. Cheers.
@snehap2127
@snehap2127 3 года назад
Interesting..but can be issue with block comments
@naveenautomationlabs
@naveenautomationlabs 3 года назад
obviously it wont. it will generate a new line but still it will be comment block only.
@snehap2127
@snehap2127 3 года назад
@@naveenautomationlabs ok, thanks for clarification
@ChrisAthanas
@ChrisAthanas 3 года назад
Tricky
@bharatiykm3cv
@bharatiykm3cv 3 года назад
But what if i comment like /* */ It will not display
@vit6723
@vit6723 3 года назад
Subarashi
@ankursatija4489
@ankursatija4489 3 года назад
20
@Mehul85
@Mehul85 3 года назад
20..bcz \u000d. = new line
@Lionstar001
@Lionstar001 3 года назад
1 lakh character koo koon yaad karr saktaa hai😆
@Gayathri-jo4ho
@Gayathri-jo4ho 3 года назад
It will not execute the comments if placed in /* */
@ragavaanvesh
@ragavaanvesh 3 года назад
Have you tried it?
@naveenautomationlabs
@naveenautomationlabs 3 года назад
obviously it wont. it will generate a new line but still it will be in comment block only.
@Gayathri-jo4ho
@Gayathri-jo4ho 3 года назад
for new line also comment will be there right
@ragavaanvesh
@ragavaanvesh 3 года назад
@@Gayathri-jo4ho thanks
@ragavaanvesh
@ragavaanvesh 3 года назад
@@naveenautomationlabs Thanks
@K42023
@K42023 3 года назад
This is voodoo
Далее
ROBLOX TRAND AGAIN. Part 7☠️🗿🙋🏻‍♀️
00:16
Star Pattern Logic - Part 1 - By Naveen AutomationLabs
22:34
ROBLOX TRAND AGAIN. Part 7☠️🗿🙋🏻‍♀️
00:16