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

preview_player
Показать описание
Tricky Java Interview Question: Can We Execute Comments in Java? || Unicode carriage return

In this video, I did a small mistake, println() method will generate a new line, not the Unicode carraige return character.

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Naveen AutomationLabs Paid Courses:
Java & Selenium:

Java & API +POSTMAN + RestAssured + HttpClient:
Рекомендации по теме
Комментарии
Автор

In this video, I did a small mistake, println() method will generate a new line, not the Unicode carraige return character.

naveenautomationlabs
Автор

Learning every day something new because of you Naveen Sir ..thank you 🙏

Bbangaram-du
Автор

@Naveen Sir Please post Java 8 concepts and tricky interview questions video as well. That would be really helpful. Thanks 😊

NileshKumar-jydi
Автор

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🙏

supriyassampath
Автор

Thank you Naveen Sir for sending the most important questions helpful during the interview everyday.

User-euel
Автор

Neat, Im going to assume that \u000d is NULL is it confuses the interpreter into thinking that the string has been split up

mechaelbrun-kestler
Автор

Excellent, awesome...
I think I am at the right place to learn newest content everyday...
You are a genius 👏

skb
Автор

Hi Naveen, Pls Suggest for 5+ yr experienced, Test Lead Role is better or Sr Automation Engineer Role?

shilpak
Автор

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

immortalhuman
Автор

Thank you so much sir.. learn new things.

smitapawar
Автор

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?

abdulazeem
Автор

How do you get such ideas Sir.Such a fabulous questions.

inshortlaughs
Автор

What is practical use of this Unicode carriage return in automation programming

naveenrajan
Автор

Can we xecute without using this carriage return ? That would be my interview question :) After seeing this video

sriramkukkadapu
Автор

What if we use */ ascii codes
Will this work for multiline comment

eceabhisheksrivastava
Автор

Interesting..but can be issue with block comments

snehap
Автор

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
What is the answer and how compiler going through?
Sorry brother if I'm wasting your time by asking this question

surajkumar-pojc
Автор

But what if i comment like /* */
It will not display

bharatiykmcv
Автор

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;

arpanmehta
Автор

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

AmitKumar-bbgn