Program to Check Whether A Number is Prime or Not in Java by Deepak
ฝัง
- เผยแพร่เมื่อ 30 ก.ย. 2024
- #java #javatutorials #deepak #smartprogramming
☀ Java Development Course (Upto 80% off) : courses.smartp...
📞 For more details Call or What's App : +91 98887-55565
------------------------------------------------------------------------------------------
#PrimeNumber #PrimeNumberProgram #java #hindi #deepak #JavaTutorials #DeepakPanwar #OnlineTraining #OnlineClasses
Program to Check Whether A Number is Prime or Not in Java by Deepak,
How to get prime numbers in java,
How to check a given number is prime or not in Java Tutorial | Lecture,
w.a.p to check the input number is prime or not in java?
Java: Calculating Prime Numbers,
Program to Check Whether a Number is Prime or Not | TalentSprint,
Program to Check Prime Number in C (HINDI),
Java Program to Print Prime Numbers,
Write a program to print prime numbers between 1 to 100.
------------------------------------------------------------------------------------------
Follow Me On Social Media :-
► Website : www.smartprogr...
► Instagram : / smart_programming
► Facebook : / smartprogramming.india
🚩🌳Professional Courses + Projects (Upto 80% off) 🌳 courses.smartprogramming.in
🔴 Core Java Playlist : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
🔴 Advance Java Playlist : th-cam.com/play/PLlhM4lkb2sEjVsbbZ_kiixY5CcR84IQUg.html
🔴 Android Playlist : th-cam.com/play/PLlhM4lkb2sEhdllbTIVF0rzD0coCiuHok.html
=====================================
▶ Core Java Chapter-wise Playlist ◀
⭕ 9. Collection Framework in Java | Java Data Structure : th-cam.com/play/PLlhM4lkb2sEiOcuH1g-CUuU288qmMNpyj.html
⭕ 8. Multithreading in Java : th-cam.com/play/PLlhM4lkb2sEh1pBs0KBb63PlKKqRx6M1a.html
⭕ 7. Strings In Java : th-cam.com/play/PLlhM4lkb2sEh8AARH5oEivYOrMgaVsPFb.html
⭕ 6. Exception Handling : th-cam.com/play/PLlhM4lkb2sEjaU-JAASDG4Tdwpf-JFARN.html
⭕ 5. OOP's Concepts : th-cam.com/play/PLlhM4lkb2sEhf5NlWeYh_gdcN49pHjVP0.html
⭕ 4. Arrays in Java : th-cam.com/play/PLlhM4lkb2sEi4UoqSmobDeA5VNI1f2w3C.html
⭕ 3. Control Statements : th-cam.com/play/PLlhM4lkb2sEgQmNKO43i7v60no4bdc3lI.html
⭕ 2. Java Introduction : th-cam.com/play/PLlhM4lkb2sEj6zsK25K9f15qNUATqYxGq.html
⭕ 1. Programming Basic Terminologies : th-cam.com/play/PLlhM4lkb2sEhwPZhFmlox57kaCgMm5UgC.html
=====================================
▶Advance Java Chapter-wise Playlist ◀
⭕ 1. JDBC (Java Database Connectivity) with MySQL : th-cam.com/play/PLlhM4lkb2sEjDXBqaYbwAoDAQKh2yczR7.html
⭕ 2. Servlet & JSP Tutorials for Beginners : th-cam.com/play/PLlhM4lkb2sEiiEAP0uSFXiFY8KdXPnN0f.html
Kon kon ye video exam k ek din pahle dekh raha hai..
Clear he😂😁😁😀🤣😂
Maa kasam khaa ke bol raha hoon sir aap se acha is TH-cam me program koi nahi padhata bhale aap ke subscriber Kam par Mai aapke 100 badhane ka jumma leta hoo
thanks a lot for your support.
due to your all blessings hoping to increase the subscribers.
thank you, keep learning
Never asked to share or subscribe his videos he is always hungry to share his knowledge in as easy way he can . Love from sjs bhagalpur
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
you can use "break" keyword after incrementing the temp so for loop will not run unnecessary.
yes, you are right.
Thank you for your support, keep learning 🙂🙂
I'm now in 2nd year of my graduation And now i realise how all the concept behind the program work Thank you sir ❤️
All the best
THIS IS THE BEST SIR 🔥🔥🔥EVER SEEN IN MY LIFE, Not only one video but in all video the explanation of codes are made such easy that increases the will power to code. Thank u Sir❤️
Thanks and welcome.❤❤
I am watching this video after my examination 😆
class Primenumbers
{
public static void main(String[] args)
{
int p=6,temp=0;
for(int i=2;i
if asked to check whether 2 is prime or not ..then according to you 2%2==0 ,then how it will return 2 is prime no ?????/
I request you sir please make video on J2EE part
Sure, I will try to upload soon
Sir, Your teaching methods and concept clearing is awesome
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Sir , u made me understand this in a few minutes as my tution teacher took hours , mean, too good .........
Keep it up.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
Please add English subtitles
Hello Geetha Devarajan..!!
we'll try to improve this..!! thankyou soo much for your suggestion..!!
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
inner class par eak video.plz
You are a blessing in disguise for me Sir ......Keep helping and keep educating ....Our good wishes and support is with you always 😊
Sir u r a gift of God for us, if u would not have posted all this videos we would find java more harder than what it really is
Thank you a lot sir
U r the best teacher
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Sir pls all those program explain with scanner with user input
Sure
Thank you sir ji... Thank you so much sir... .ye flag ka fanda samaj nahi aaraha tha😬😁😁😂😂😂😂🤣🤣🤣🤣... .
Aba pura samaj gaya... .Feeling like pro😎🤏🥳🥳🤩🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
Good. Keep Learning.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
this is best tutorial of java on the TH-cam, your teaching methods and concept clearing is awesome ..............please make videos in python language
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
Watching this one day before my exam 😂😂
thankyou so much sir for providing your knowledge in free of cost. your tutorials helped me alot.
Sir you are a great teacher.I like your teaching very much 😍😍😍😍
Can you post a video on twisted prime. Its really very hard for me to understand
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Thank u so much sir clr all concept .l love programming after watching your vidio.plz sir more questions practice
Keep watching.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
really helpful i was not able to understand in my class but this video help me a lot thank you so much sir
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
So this code will print 2 as not a prime number right?
Hello Saradru Mukherjee
No 2 is prime number
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
@@SmartProgramming
Please can you clear this confusion
if we need to find whether '2' is a prime number then
for (i = 2 ; i
can we write if(n%i!=0), instead of using third variable(temp)?
Awesome teching ability and no-one can beat your method that you teach and clear the concept of core java
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
wonderful explaination
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
according to ur logic 1 is also a prime...but in actual it is not.
yes, you are right, there is a bit change in the logic which i have also commented.
thank you, keep learning
Sorry sir but 5.29 pr dekhiye app ne bola ki if (temp>0) bola lekin prog. Banate time aap if(temp==0) use kr rahe h...? Explain it
if you write temp==0, then below is the logic:
if(temp==0)
{
System.out.println(no+" is prime no");
}
else
{
System.out.println(no+" is not prime");
}
-----------------------------------------------------------------------------------------------
if you write temp>0, then below is the logic :
if(temp>0)
{
System.out.println(no+" is not prime");
}
else
{
System.out.println(no+" is prime no");
}
----------------------------------------------------------------------------------------------
when we change the condition with temp, the logic of inner part will be changed.
Hope you got it, if not ask anytime, thank you, keep learning 🙂🙂
You are outstanding sir
Thanks a lot, Keep Learning
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
Nice 👍 sir your teaching is great 👍
plz change the quality of the camera sir!! otherwise great tutorial video!!!!!
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Excellent sir, thank you so much
Hello Rajendra more,
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
Nice which we can understand easily
thank you
You r the best sir.. This is best programming channel 👍
Sir nice explanation, but this works only for positive integers what about negative integer please update for that condition.
Sir while xplainin u have said if(temp>0) while compiling d program u have written if(temp==0) ??
depends on logic, you can also write that also and change the inner logic, thats it.
thank you, keep learning
Me exam ke 15 min pehle dekh raha hu
What about 0 and 1?
Hello pooja shahapure ,
0 and 1 are not the prime numbers this is because
anything divided by zero gives infinite ans.
and all the numbers are divisible by 1
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
Yah I know ,0 & 1 are non prime numbers but if I compiled your program and I give the no. 0 & 1 then output becomes prime number........
Sir explain us how to take variable plz
Good explanation
Like kar do
Sir please make a video on power of X. Like X to the power 1and upto n
Hello Deepak Chauhan ,
we will upload it soon
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
Thank u sir you r really great I really liked your videos and i understood everything you are better than my computer reacher.
Hello mann pandit..!!
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
Sir ke subscribers badhao
Please explain duck number( a no. Is said to be duck no. If the digit zero is present in it) . I'm not able to check for 0.
import java.io.IOException;
public class DuckNo
{
public static void main(String args[])throws IOException
{
String num = "0123";
char first_digit1 = num.charAt(0);
int len = num.length();
int count_zero = 0 ;
char ch;
for(int i = 1;i < len ;i++)
{
ch=num.charAt(i);
if(ch=='0')
{
count_zero++;
}
}
if( count_zero > 0 && first_digit1 != '0')
{
System.out.println("It is a duck number");
}
else
{
System.out.println("It is not a duck number");
}
}
}
Thnx
Sir you can use bluej
Unable to play the video please review the video again and upload #request
Best logic I try many vedios before that but I can't understand
After watching this vedio I understand in one time only
Please add English subtitles...ur way of explanation is awesome
Ok Noted.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
The program is wrong. If we put a the value of no. as 13 then
no.%i = 1
because
i1)
S.o.pln("It is not prime");
else
S.o.pln("It is prime");
no, again check the logic, my program is correct.
thank you, keep learning 🙂🙂
@@SmartProgramming sir, rahul mishra is right
Rahul, he did mention (n-1) (2:28)
which means
13 cant get divided by 13
besides there is difference between % and /
% gives you remainder
/ gives you quotient
for eg.
2/2 = 1 (this is division symbol)
2%2=0 (this is modulus symbol)
hope that helps Rahul
nice very easy to understand
Hello Az Ab,
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
Thank you sir
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
hi.sir i am having one question.can you please solve it.
1.write a java program to print fibonacci series in the given range.
2.write a java program to print largest odd fibonacci numbers in the given range.if odd fibonacci numbers does not exist in between then it should return 0.
Sir please make video on binary to decimal conversion programme
Sir, can u plz upload a program of library management system using switch case. It is really be helpful if u upload.
Thnkuuu so much..finally,my all doubts are cleared..again thnkuu very much sirr
Hello Indreapratap Singh..!!
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
Clear hai 😉🙃
nice one
thankyouu soo much sir . very nice explanation totally simple .
Thank you so much sir ,if I am able to learn programming due to you sir .I will oblige with you .🙏
Very nice sir
Thanks and welcome, keep learning
Below are some of the links of free playlist :-
Core Java : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Spring Boot : th-cam.com/play/PLlhM4lkb2sEhcrb1-4eyDE-rXnGNVYsek.html
Spring Framework : th-cam.com/play/PLlhM4lkb2sEgJDGj2zOJnp0y5A5E6li1k.html
Advance Java (JDBC + Servlet + JSP) : th-cam.com/play/PLlhM4lkb2sEjVsbbZ_kiixY5CcR84IQUg.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Connect With Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram : instagram.com/smart_programming
Telegram : t.me/smart_programming_deepak
If we put 1 instead of 7 then it's shows it's prime
just add
if (n==0 || n==1)
System.out.println("neither prime nor composite")
Plz suggest any java book.
following three books are good for java : 1. The Complete Reference
2. Black Book
3. Head First
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the link of all the progrms shown in starting of the videos, thank you.Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html
Show less
Sir please make a lecture on Bomb Defusal
Bahut Badiya. Kal ip ka paper hai.
Sab clear kar diya. VERY VERY THANKU
Hello Ayush Garg..
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
Mai interview me dekh rha hu..😂
Great and Best of Luck🤗
Thanks Man .. U have no idea how much i needed this .
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
i am getting not prime number every time and i have copied word to word whats the issue ? anyone here ...
Sir plz make the video of data structure
if i enter in ouput in 0 and 1 this programm also say this prime
Sir, it would be very helpful if you upload a video on finding duck number
Hello Aadhil Ks
Thanks a lot for your valuable feedback and support.
Get updated to my new videos in the following link:
th-cam.com/users/smartprogramming
Below are the links of all the tutorials in java :
1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html?
Sir tomorrow is my computer theory , bless me
Bless you.. sorry for late reply.
Sir you explain very well but it is not working when no. is 1 because 1 is not a prime no. Please explain
for 1, you can write if condition that no should be greater then 1.
import java.util.Scanner;
class PrimeNo
{
public static void main(String args[])
{
Scanner s=new Scanner(System.in);
System.out.println("Enter the number : ");
int no=s.nextInt();
if(no>1)
{
int temp=0;
for(int i=2;i
Bahut achha se explain karte hai app.
Keep helping us...
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
You are just awesome!!
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Nyc explain 👍🏼👍🏼
Thank you sir ,you explained very well
Can you also explain logic for Max continuous subarray sum
sure, after 1-2 tutorials you will get your tutorial, thank you, keep learning 🙂🙂
Awesome content sir but please star J2EE part🙏
You are teaching hundred times better than any other teacher.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
very good explanation and thank you sir for creating this video
Hello IMRAN SHAIKH,
Thank you for your valuable feedback.
If you are new, Please subscribe to get updates about new videos in the following link:
th-cam.com/users/smartprogramming
thank you sir for your briefly explanation
We are very lucky java guy's having a support of you. Thank you very much.....
Always there for you guys.
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Really u r real guru or saraswati...bahut khub ....aapko dekh lene se hi mera din accha jaata hai....
Thank you for showing this much of respect.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Shop With Us: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
maja aa gya sir ... bht hi simply samjhate ho.. thank you
Hello SANDEEP KUMAR PANDA,
Thank you for your valuable feedback.
If you are new, Please subscribe to get updates about new videos in the following link:
th-cam.com/users/smartprogramming
Easy way
c=0;
for(i=2;i
thankyousoo much
Most Welcome and Keep Learning 🙏🙏
And sir if number is 1 then it will not give desire result
Which song's music is that at end of this video??
what if no is 1.it show 1 is prime but 1 is not a prime no
✌🙏🙏🙏🙏🙏 thank you so much!!!
thank you sir very nice explanation
Leap year program plz
below is the link for leap year program, thank you, keep learning
th-cam.com/video/vtDcyrs4EHk/w-d-xo.html
It's perfectly clear even though i don't understand your language!
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming
Hi Deepak, Thank you so much for sharing yours knowledge in Amazing way. definitely your video is helping a lot.
Very nice explain sir
thank you, keep learning
really great explanation....sub itne aram se diamk me gus gaya
Thank you for your feedback.
Below are some of the links for more videos and information :
Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
Website : www.smartprogramming.in
Projects & Courses Website : courses.smartprogramming.in
Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
Follow Us On :
Amazon Store: www.amazon.in/shop/smartprogramming
Facebook Page : facebook.com/smartprogramming.india
Instagram Page : instagram.com/smart_programming