TechShiksha by Badkul Technology
5.78K subscribers
135 photos
238 files
617 links
https://www.youtube.com/@TechShikshaBT

Learn Java programming for free
Free hand written notes
Free ebooks
Free assignment support
Paid assignment support
Download Telegram
#Quiz_Java (Question - 117)

Method overriding is combination of inheritance and polymorphism?
Anonymous Quiz
63%
True
24%
False
10%
Both
3%
None of the above
Newly Joined Members subscribe to our channel to learn programming and crack written exams.

https://www.youtube.com/c/frbjava


Discuss doubts in @javaforfree
Can you write a class if description is given? Along with getters and setters, toString, constructors?
Anonymous Poll
76%
Yes
15%
No
9%
Share a video
public class RemoveSpacesFromString {

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
System.out.println(firstApproach(str));
System.out.println(secondApproach(str));
}

private static String secondApproach(String str) {
String strWithoutSpaces ="";
for(int i=0; i<str.length(); i++) {
if(str.charAt(i)!=' ') {
System.out.println("after "+i+"th iteration "+strWithoutSpaces);
strWithoutSpaces +=str.charAt(i);
}
}
return strWithoutSpaces;
}

private static String firstApproach(String str) {
return str.replaceAll(" ", "");

}

}
👍5
Newly Joined Members subscribe to our channel to learn programming and crack written exams.

https://www.youtube.com/c/frbjava


Discuss doubts in @javaforfree
Solution video will be uploaded at 9 am today
Newly Joined Members subscribe to our channel to learn programming and crack written exams.

https://www.youtube.com/c/frbjava


Discuss doubts in @javaforfree
Why do we need while loop, when we already have for loop to do the same thing.
Anonymous Poll
68%
answer in comments
32%
share solution video
Can you write a program to take input from user. In next video we will explain same.
Anonymous Poll
89%
Yes
11%
No
Planning to organize a workshop on weekend to show how to solve basic programs in java written exams?
Anonymous Poll
82%
Interested in free workshop
13%
Interested in paid workshop
5%
Not interested
Newly Joined Members subscribe to our channel to learn programming and crack written exams.

https://www.youtube.com/c/frbjava


Discuss doubts in @javaforfree