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
☝️ 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
🔥21
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
Do you need palindrome number video in English as well?
Anonymous Poll
81%
Yes
19%
No
#Quiz_Java (Question - 89)

Java bytecode is saved as ………… file.
Anonymous Quiz
43%
.java
42%
.class
9%
.exe
6%
.byc
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
👍1😁1