How to Print Double Quotes in Java

To print double quotes in Java, we can either use:



System.out.println("\"Hello\"");

Or:

System.out.println((char)34+"Hello"+(char)34) ;
Print Double Quotes in Java Step 1.jpg

About the Author

Expert writer helping professionals grow their knowledge through well-researched content and strategic insights.

Read the previous article
Read the next article

Popular Posts