{"id":89847,"date":"2024-09-02T18:00:54","date_gmt":"2024-09-02T12:30:54","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=89847"},"modified":"2024-09-02T18:10:30","modified_gmt":"2024-09-02T12:40:30","slug":"java-printwriter-class","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/","title":{"rendered":"Java PrintWriter Class with Examples"},"content":{"rendered":"<p>Java PrintWriter class is the implementation of Writer class. It is used to print the formatted representation of objects to the text-output stream. PrintWriter is a class used to write any form of data, e.g. int, float, double, String or Object in the form of text either on the console or in a file in Java.\u201d For example, you may use the PrintWriter object to log data in a file or print it on the console.<\/p>\n<h2>Class declaration<\/h2>\n<p>Let&#8217;s see the declaration for Java.io.PrintWriter class:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public class PrintWriter extends Writer<\/pre>\n<h3>Methods of PrintWriter class:<\/h3>\n<table>\n<tbody>\n<tr>\n<td><strong>Method<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">void println(boolean x)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to print the boolean value.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">void println(char[] x)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to print an <\/span><span style=\"font-weight: 400;\">array<\/span><span style=\"font-weight: 400;\"> of characters.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">void println(int x)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to print an integer.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">PrintWriter append(char c)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to append the specified character to the writer.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">PrintWriter append(CharSequence ch)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to append the specified character sequence to the writer.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">PrintWriter append(CharSequence ch, int start, int end)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to append a subsequence of a specified character to the writer.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">boolean checkError()<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to flush the stream and check its error state.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">protected void setError()<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to indicate that an error occurs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">protected void clearError()<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to clear the error state of a stream.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">PrintWriter format(String format, Object&#8230; args)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to write a formatted <\/span><span style=\"font-weight: 400;\">string<\/span><span style=\"font-weight: 400;\"> to the writer using specified arguments and format string.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">void print(Object obj)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to print an object.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">void flush()<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to flush the stream.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">void close()<\/span><\/td>\n<td><span style=\"font-weight: 400;\">It is used to close the stream.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Java PrintWriter Example:<\/h3>\n<p>Let&#8217;s see the simple example of writing the data on a <strong>console<\/strong> and in a <strong>text file testout.txt<\/strong> using Java PrintWriter class.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import java.io.File;  \r\nimport java.io.PrintWriter;  \r\npublic class TechVidvan{  \r\n    public static void main(String[] args) throws Exception {  \r\n                   PrintWriter writer = new PrintWriter(System.out);    \r\n      writer.write(\"TechVidvan provides tutorials of all technology.\");        \r\n writer.flush();  \r\n      writer.close();       \r\n      PrintWriter writer1 =null;      \r\n         writer1 = new PrintWriter(new File(\"D:\\\\testout.txt\"));  \r\n         writer1.write(\"Like Java, Spring, Hibernate, Android, PHP etc.\");                                                   \r\n                         writer1.flush();  \r\n         writer1.close();  \r\n    }  \r\n}<\/pre>\n<h3>Constructor and Description:<\/h3>\n<ul>\n<li><strong>PrintWriter(File file):<\/strong> Creates a new PrintWriter, without automatic line flushing, with the specified file.<\/li>\n<li><strong>PrintWriter(File file, String csn):<\/strong> Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.<\/li>\n<li><strong>PrintWriter(OutputStream out):<\/strong> Creates a new PrintWriter, without automatic line flushing, from an existing OutputStream.<\/li>\n<li><strong>PrintWriter(OutputStream out, boolean autoFlush):<\/strong> Creates a new PrintWriter from an existing OutputStream.<\/li>\n<li><strong>PrintWriter(String fileName):<\/strong> Creates a new PrintWriter, without automatic line flushing, with the specified file name.<\/li>\n<li><strong>PrintWriter(String fileName, String csn):<\/strong> Creates a new PrintWriter without automatic line flushing and with the specified file name and charset.<\/li>\n<li><strong>PrintWriter(Writer out):<\/strong> Creates a new PrintWriter without automatic line flushing.<\/li>\n<li><strong>PrintWriter(Writer out, boolean autoFlush):<\/strong> Creates a new PrintWriter.<\/li>\n<\/ul>\n<h3>Methods of PrintWriter class:<\/h3>\n<h4>1. PrintWriter append(char c)<\/h4>\n<p>Appends the specified character to this writer<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public PrintWriter append(char c)<\/pre>\n<p><strong>Parameters:<\/strong><br \/>\nc &#8211; The 16-bit character to append<\/p>\n<p><strong>Returns:<\/strong><br \/>\nThis writer<\/p>\n<h4>2. PrintWriter append(CharSequence csq, int start, int end)<\/h4>\n<p>Appends the specified character sequence to this writer.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public PrintWriter append(CharSequence csq,\r\n        int start,int end)<\/pre>\n<p><strong>Parameters:<\/strong><br \/>\n<strong>csq &#8211;<\/strong> The character sequence from which a subsequence will be appended.<br \/>\n<strong>start &#8211;<\/strong> The index of the first character in the subsequence<br \/>\n<strong>end &#8211;<\/strong> The index of the character following the last character in the subsequence<\/p>\n<p><strong>Returns:<\/strong><br \/>\nThis writer<\/p>\n<p><strong>Throws:<br \/>\n<\/strong>IndexOutOfBoundsException<\/p>\n<h4>3. PrintWriter append(CharSequence csq)<\/h4>\n<p>Appends a subsequence of the specified character sequence to this writer.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public PrintWriter append(CharSequence csq)<\/pre>\n<p><strong>Parameters:<\/strong><br \/>\n<strong>csq &#8211;<\/strong> The character sequence to append.<\/p>\n<p><strong>Returns:<\/strong><br \/>\nThis writer<\/p>\n<h4>4. boolean checkError()<\/h4>\n<p>Flushes the stream and checks its error state.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public boolean checkError()<\/pre>\n<p><strong>Returns:<\/strong> true if and only if this stream has encountered an IOException other than InterruptedIOException, or the setError method has been invoked<\/p>\n<h4>5. protected void clearError()<\/h4>\n<p>Clears the internal error state of this stream.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">protected void clearError()<\/pre>\n<h4>6. void close()<\/h4>\n<p>Closes the stream and releases any system resources associated with it.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void close()<\/pre>\n<p><strong>Specified by:<\/strong> close in class Writer<\/p>\n<h4>7. void flush()<\/h4>\n<p>Flushes the stream.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void flush()<\/pre>\n<p><strong>Specified by:<\/strong> flush in interface Flushable<\/p>\n<p><strong>Specified by:<\/strong> flush in class Writer<\/p>\n<h4>8. PrintWriter format(Locale l, String format, Object\u2026 args)<\/h4>\n<p>Write a formatted string to this writer using the specified format string and arguments.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public PrintWriter format(Locale l,\r\n        String format,\r\n        Object... args)<\/pre>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>l &#8211;<\/strong> The locale is to be applied during formatting. If l is null, then no localization is applied.<br \/>\n<strong>format &#8211;<\/strong> A format string as described in Format string syntax<br \/>\n<strong>args &#8211;<\/strong> Arguments referenced by the format specifiers in the format string. The number of arguments is variable and may be zero.<\/p>\n<p><strong>Returns:<\/strong><br \/>\nThis writer<\/p>\n<p><strong>Throws:<\/strong><br \/>\nIllegalFormatException<br \/>\nNullPointerException<\/p>\n<h4>9. PrintWriter format(String format, Object\u2026 args)<\/h4>\n<p>Write a formatted string to this writer using the specified format string and arguments.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public PrintWriter format(String format,\r\n        Object... args)<\/pre>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>format &#8211;<\/strong> A format string as described in Format string syntax<br \/>\n<strong>args &#8211;<\/strong> Arguments referenced by the format specifiers in the format string. The number of arguments is variable and may be zero.<\/p>\n<p><strong>Returns:<\/strong><br \/>\nThis writer<\/p>\n<p><strong>Throws:<\/strong><br \/>\nIllegalFormatException<br \/>\nNullPointerException<\/p>\n<h4>10. void print(boolean b)<\/h4>\n<p>Prints a boolean value.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(boolean b)<\/pre>\n<h4>11. void print(char c)<\/h4>\n<p>Prints a character.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(char c)\r\n<\/pre>\n<h4>12. void print(char[] s)<\/h4>\n<p>Prints an array of characters.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(char[] s)<\/pre>\n<h4>13. void print(double d)<\/h4>\n<p>Prints a double-precision floating-point number.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(double b)<\/pre>\n<h4>14. void print(float f)<\/h4>\n<p>Prints a floating-point number.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(float f)<\/pre>\n<h4>15. void print(int i)<\/h4>\n<p>Prints an integer.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(int i)<\/pre>\n<h4>16. void print(long l)<\/h4>\n<p>Prints a long integer.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(long l)<\/pre>\n<h4>17. void print(Object obj)<\/h4>\n<p>Prints an object.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(Object obj)<\/pre>\n<h4>18. void print(String s)<\/h4>\n<p>Prints a string.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public void print(String s)<\/pre>\n<h3>Conclusion<\/h3>\n<p>We can write formatted data for an underlying writer using the Java PrintWriter class java. A superclass of the PrintWriter is the Writer class. It is easier to customize the format as per the specified Locale (regional standards) while publishing global applications using the PrintWriter object.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java PrintWriter class is the implementation of Writer class. It is used to print the formatted representation of objects to the text-output stream. PrintWriter is a class used to write any form of data,&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":447402,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[296,5600,340,5668,327,5538,250,341,342],"class_list":["post-89847","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java","tag-java-printwriter","tag-java-printwriter-class","tag-java-printwriter-class-with-examples","tag-java-tutorials","tag-java-tutorials-for-beginners","tag-learn-java","tag-printwriter","tag-printwriter-class-in-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java PrintWriter Class with Examples - TechVidvan<\/title>\n<meta name=\"description\" content=\"We can write formatted data for an underlying writer using the Java PrintWriter class java. A superclass of the PrintWriter is the Writer class.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java PrintWriter Class with Examples - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"We can write formatted data for an underlying writer using the Java PrintWriter class java. A superclass of the PrintWriter is the Writer class.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-02T12:30:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-02T12:40:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/08\/java-printwriter.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java PrintWriter Class with Examples - TechVidvan","description":"We can write formatted data for an underlying writer using the Java PrintWriter class java. A superclass of the PrintWriter is the Writer class.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/","og_locale":"en_US","og_type":"article","og_title":"Java PrintWriter Class with Examples - TechVidvan","og_description":"We can write formatted data for an underlying writer using the Java PrintWriter class java. A superclass of the PrintWriter is the Writer class.","og_url":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2024-09-02T12:30:54+00:00","article_modified_time":"2024-09-02T12:40:30+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/08\/java-printwriter.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/dde481bb412350cde1ed6e389bc0deaf"},"headline":"Java PrintWriter Class with Examples","datePublished":"2024-09-02T12:30:54+00:00","dateModified":"2024-09-02T12:40:30+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/"},"wordCount":896,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/08\/java-printwriter.webp","keywords":["java","java printwriter","java printwriter class","java printwriter class with examples","java tutorials","java tutorials for beginners","Learn Java","printwriter","printwriter class in java"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/","url":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/","name":"Java PrintWriter Class with Examples - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/08\/java-printwriter.webp","datePublished":"2024-09-02T12:30:54+00:00","dateModified":"2024-09-02T12:40:30+00:00","description":"We can write formatted data for an underlying writer using the Java PrintWriter class java. A superclass of the PrintWriter is the Writer class.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/08\/java-printwriter.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/08\/java-printwriter.webp","width":1200,"height":628,"caption":"java printwriter"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/java-printwriter-class\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Java PrintWriter Class with Examples"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/dde481bb412350cde1ed6e389bc0deaf","name":"TechVidvan Team"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=89847"}],"version-history":[{"count":3,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89847\/revisions"}],"predecessor-version":[{"id":447709,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89847\/revisions\/447709"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/447402"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=89847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=89847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=89847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}