ISC Class 12 Computer Science 2023 Theory | Q8 - Sort Words of Sentence | Java Program | Step-by-Step solution
Prepare for ISC Class 12 Computer Science Board Exam 2026 with complete solved papers (2016–2025).
📥 Access 10 Years Solved ISC Board Paper Answer Keys (2016–2025):
https://codewithbk.com/isc-class-12-c...
📘 All ISC Class 12 Board & Specimen Detailed Solutions (2016–2025):
https://codewithbk.com/isc-class-12-c...
📝 This question explained in written format:
https://codewithbk.com/isc-class-12-c...
Welcome to CodeWithBK — your complete learning hub for ISC Class 12 Computer Science Java solutions.
In this video, we solve ISC Class 12 Computer Science 2023 Theory Question 8 , which requires writing a Java program to *Sort the Words of a Sentence*. The explanation covers breaking a sentence into words, applying sorting logic, and displaying the sorted result.
What you will learn:
How to split a sentence into words in Java
Using arrays and string manipulation techniques
Applying sorting logic (bubble sort / Arrays.sort) on strings
Displaying the sentence in sorted word order
Step-by-step program explanation for ISC exam preparation
Prerequisites:
Basic understanding of Java strings and arrays
Familiarity with loops and conditionals in Java
Knowledge of simple sorting techniques
Who is this video for:
ISC Class 12 Computer Science students preparing for board exams
Beginners practicing Java string and array problems
Students looking for solved ISC theory paper solutions
Anyone learning text processing and sorting in Java
If you find this video helpful, please like, share, and subscribe to the channel for more Java tutorials, ISC board exam solutions, and programming tips.
Check out my channel CodeWithBK (also searchable as codewithbk, code with bk, codewith bk) for more programming tutorials, solved ISC questions, and detailed Java explanations.
Other questions solved of ISC 2023 Computer Science Theory Paper:
Question 6 (Check Dudeney Number) : • ISC Class 12 Computer Science 2023 Theory ...
Question 7 (Find transpose of a Matrix) : • ISC Class 12 Computer Science 2023 Theory ...
Question 9 (Create a deQueue Class) : • ISC Class 12 Computer Science 2023 Theory ...
Question 10 (Create a Supply Class) : • ISC Class 12 Computer Science 2023 Theory ...
My videos on similar practice programs in Java for ISC Computer Science Theory
To sort the words of a String sentence in Java (in English):
Extract words from a String sentence in Java (in English): • Java String – Extract Words with Examples
Count the number of words in a String sentence in Java (in English): • Java Program to Count the Number of Words ...
Timestamps:
00:00 Intro
00:26 Problem Description
00:48 Doubts in the question - not framed very clearly
02:02 The SortAlpha class
02:23 default constructor
03:06 acceptsent() function
04:37 sort() function
11:23 display() function
12:10 main() method
12:47 testing the code
🔔 Don’t forget to like, share, and subscribe to CodeWithBK for more ISC and ICSE Java solutions, past paper walkthroughs, and coding tutorials.
Stay connected:
Subscribe: / @codewithbk
Email: [email protected]
Discord: / discord
Coding mentor profile: https://www.codementor.io/@balkrishna...
For 1:1 sessions, reach out to me here : https://www.codementor.io/@balkrishna...
My YouTube channel where I teach in Hindi : / @codewithbkhindi
#ISCClass12 #BoardExam #CodeWithBK #Java #TheoryPaper #PastPaperSolution #iscboards #ComputerScience