Back-End Programming Exam  >  Back-End Programming Videos  >  Java Programming Fundamentals: For Beginners (in Hindi)  >  Lecture 46 Writing to a file using BufferedWriter in Java Hindi

Lecture 46 Writing to a file using BufferedWriter in Java Hindi Video Lecture | Java Programming Fundamentals: For Beginners (in Hindi) - Back-End Programming

75 videos

FAQs on Lecture 46 Writing to a file using BufferedWriter in Java Hindi Video Lecture - Java Programming Fundamentals: For Beginners (in Hindi) - Back-End Programming

1. क्या BufferedWriter क्या है और जावा में इसका उपयोग कैसे किया जाता है?
उत्तर: BufferedWriter एक जावा क्लास है जिसका उपयोग फ़ाइल में डेटा लिखने के लिए किया जाता है। यह डेटा को बफ़र करके लिखता है जिससे लेखन का प्रदर्शन बेहतर होता है। BufferedWriter को FileWriter के साथ उपयोग करके हम एक फ़ाइल में डेटा लिख सकते हैं।
2. BufferedWriter क्लास के प्रमुख मेथड्स कौन-कौन से हैं?
उत्तर: BufferedWriter के प्रमुख मेथड्स हैं write(), newLine() और close()। write() मेथड का उपयोग डेटा लिखने के लिए किया जाता है, newLine() मेथड एक नई पंक्ति लिखता है, और close() मेथड फ़ाइल को बंद करता है।
3. BufferedWriter का उपयोग क्यों किया जाता है?
उत्तर: BufferedWriter का उपयोग फ़ाइल में डेटा लिखने के दौरान लिखने का प्रदर्शन बेहतर बनाने के लिए किया जाता है। यह डेटा को बफ़र करके लिखता है, जिससे डिस्क अभीष्ट में डेटा लिखने की आवश्यकता को कम करता है।
4. FileWriter और BufferedWriter में क्या अंतर है?
उत्तर: FileWriter और BufferedWriter दोनों क्लासेज़ फ़ाइल में डेटा लिखने के लिए उपयोग होती हैं, लेकिन उनमें कुछ अंतर होता है। BufferedWriter, जब इसे FileWriter के साथ उपयोग किया जाता है, डेटा को बफ़र करके लिखता है, जबकि FileWriter तुरंत डेटा लिखता है। BufferedWriter का उपयोग करने से लिखने का प्रदर्शन बेहतर होता है और डिस्क अभीष्ट में डेटा लिखने की आवश्यकता को कम करता है।
5. क्या BufferedWriter का उपयोग केवल टेक्स्ट फ़ाइलों में ही किया जा सकता है?
उत्तर: नहीं, BufferedWriter का उपयोग टेक्स्ट फ़ाइलों के साथ ही बाइनरी फ़ाइलों में भी किया जा सकता है। BufferedWriter के माध्यम से हम बाइनरी डेटा को भी लिख सकते हैं, जैसे कि इमेज या वीडियो फ़ाइल में डेटा लिखने के लिए।
75 videos
Explore Courses for Back-End Programming exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Exam

,

Viva Questions

,

video lectures

,

past year papers

,

ppt

,

Lecture 46 Writing to a file using BufferedWriter in Java Hindi Video Lecture | Java Programming Fundamentals: For Beginners (in Hindi) - Back-End Programming

,

Semester Notes

,

Objective type Questions

,

Extra Questions

,

Previous Year Questions with Solutions

,

practice quizzes

,

Lecture 46 Writing to a file using BufferedWriter in Java Hindi Video Lecture | Java Programming Fundamentals: For Beginners (in Hindi) - Back-End Programming

,

Free

,

Important questions

,

MCQs

,

mock tests for examination

,

pdf

,

Sample Paper

,

study material

,

shortcuts and tricks

,

Lecture 46 Writing to a file using BufferedWriter in Java Hindi Video Lecture | Java Programming Fundamentals: For Beginners (in Hindi) - Back-End Programming

,

Summary

;