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
Thanks Everyone who has subscribed to our channel.
We have almost tripled our subscriber in just 15 days.
if you have not yet subscribed to our channel then below is the link
https://www.youtube.com/c/frbjava
πŸ”₯1
#Quiz_Java (Question - 83)

The β€œ.class” file has the same name as the class defined in the program.
Anonymous Quiz
81%
True
12%
False
7%
Sometimes
0%
None of the above
πŸ₯°3
Can you write a program to rotate array by one place? Example below
Input 1 2 3 4 5 6 7
Output 2 3 4 5 6 7 1
Anonymous Poll
56%
Yes
22%
No
23%
Share solution video
☝️ Solution Video
On 31st jan we had 100 subscribers
Now we have crossed 300 in just 15 days, thanks for your support.
❀3
Can we overload Main method in java?
Anonymous Quiz
70%
Yes
30%
No
πŸ‘5
A java program a class inside another class, how many. .class files will be generated?
Anonymous Quiz
50%
1
34%
2
8%
3
8%
None of these
πŸ‘4πŸ‘1
If a java program has 4 Java classes then how many .class files will be generated?
Anonymous Quiz
58%
4
18%
8
9%
2
15%
None of these
πŸ”₯2❀1
Forwarded from Badkul Technology
Which data type is used to create a variable that should store text?
Anonymous Quiz
75%
String
11%
string
4%
mystr
10%
Text
Subscribe to our channel to learn programming from beginning

Refer basic Java Playlist

https://www.youtube.com/c/FrbJava
/* Question - 01

To Find Factorial Of A Number

*/

package ABC;

import java.util.*;

public class Hello

{
public static void main(String[] args)

{
Scanner s1 = new Scanner(System.in);

System.out.println("Enter The Value Of n :");

int n = s1.nextInt();

int fact = 1;

for(int i=1;i<=n;i++)

{
fact = fact * i;
}


System.out.println("Factorial of "+ n +" is " + fact);
}

}
❀3
/* Question - 02

Java Program To Reversing A Given Number

*/


package ABC;

import java.util.*;

public class Main {

public static void main(String[] args) {

Scanner s = new Scanner(System.in);

int num,rev=0,rem;

System.out.println("Enter The Number :");

num = s.nextInt();

System.out.println("Original Number: " + num);

while(num != 0) {

rem = num%10;

rev = rev*10+rem;

num = num/10;
}

System.out.println("Reversed Number: " + rev);
}
}
πŸ‘4
/* Question - 03

Java Program To Check Whether Given Number Is Palindrome Or Not

*/


package ABC;

import java.util.*;

public class Main {

public static void main(String[] args) {

int Num,Rem,Sum=0,Var;

Scanner s = new Scanner(System.in);

System.out.print("Enter The Number :");

Num = s.nextInt();

Var = Num;

while(Num!=0) {

Rem = Num%10;

Sum = Sum*10+Rem;

Num = Num/10;
}

if(Sum==Var)
{
System.out.println(Var+" Is A Palindrom Number");
}

else
{
System.out.println(Var+" Is Not A Palindrom Number");
}
}
}
πŸ‘5