Common Java Examples Interview Questions - Part 2 || Don't take it lightly

preview_player
Показать описание
In this video, I have discussed about different basic examples of Java programming which are being asked in Interviews.
It looks easy, but you have to practice to solve them quickly.

1 Java Program to Check Whether a Number is Positive or Negative
2
Java Program to Check Whether a Character is Alphabet or Not
3 Java Program to Calculate the Sum of Natural Numbers
4 Java Program to Find Factorial of a Number
5 Java Program to Generate Multiplication Table
6 Java Program to Display Fibonacci Series
7 Java Program to Display Characters from A to Z using loop
8 Java Program to Count Number of Digits in an Integer
9
Java Program to Reverse a Number

~~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
Рекомендации по теме
Комментарии
Автор

Hi naveen I was working as manual tester I started watching your classes started practicing simultaneously really I have seen many changes in me with in very less days heart full thanks for your support

anilrajmanne
Автор

Thank you Naveen.. I also finished the qa test course I need more practice and your videos help me a lot for interview prep. Waiting next video.. Thanks for your time to share your knowledge..

hioz
Автор

28:55

i used this approach to count number of digits in a integer

int n = 12345678;
String l = Integer.toString(n);
{

}

rajatshandilya
Автор

Thanks you much needed for people who attend interview .Thanks a lot

arvindram
Автор

Hi Naveen, I have been following your channel for a very long time, learned number of topics from your videos and they are just amazing. A very big thank you. :)
I have been waiting for a video in you channel on "ThreadLocal use in TestBase class" topic.

abhisheksoni
Автор

Please share the next video and I also made the same mistake in the last question by converting into string but yeah I also knew the correct approach as well but didn't click straight away. Thanks for all the help.

gopaloo
Автор

thanks very much sir....🙏🙏🙏it really help me....✌

vinoddhale
Автор

Hi Naveen,
Here are a few ways of creating the Fibonacci series.
1) Fibonacci Series using Arraylist:
ArrayList<Integer> series = new ArrayList<Integer>();
series.add(0);
series.add(1);

Scanner sc = new Scanner(System.in);
System.out.println("Please enter the length of the Fibonacci Series: ");
int length = sc.nextInt();

sc.close();

if (length <= 0) {
System.out.println("Length cannot be zero or negative");
} else if (length == 1) {

} else if (length == 2) {

} else {

for (int i = 3; i <= length; i++) {
series.add(series.get(i - 2) + series.get(i - 3));
}
System.out.println("The Fibonacci Series of length " + length + " is as below :");


}


2) With three int variables a, b, c
Scanner sc = new Scanner(System.in);
System.out.println("Please enter the length of the series, greater than 0");
int num = sc.nextInt();
int a = 0, b = 0, c = 1;
if (num <= 0) {
System.out.println("you have not entered the length > 0");
} else {
for (int i = 0; i < num; i++) {
a = b;
b = c;
c = a + b;
System.out.print(a + " ");
}
}
sc.close();

amolnawale
Автор

Thanks for the video 👍😊, BTW I love the caption too 😊

SarangHoley
Автор

Thanks a lot naveen for next video i.e. part 3

priyankapatil
Автор

TimeStamps-:
1 Java Program to Check Whether a Number is Positive or Negative 00:35
2 Java Program to Check Whether a Character is Alphabet or Not 03:40
3 Java Program to Calculate the Sum of Natural Numbers 06:50
4 Java Program to Find Factorial of a Number 12:05
5 Java Program to Generate Multiplication Table 16:30
6 Java Program to Display Fibonacci Series 20:25
7 Java Program to Display Characters from A to Z using loop 26:55
8 Java Program to Count Number of Digits in an Integer 29:00
9 Java Program to Reverse a Number 34:45 (Asked in MS)

ParthKandpal
Автор

Hi Naveen, I could find the part 3 of : Common java examples interview question . Is it available ? Or you made only till part 2

shalyajrishi
Автор

Reverse Integer:

public class ReverseNo {
public static void main(String[] args) {
int num = 456765;
int rev;

while (num !=0){
rev = num % 10;
num = num / 10;
System.out.print(rev);
}
}
}

ankushtagalpallewar
Автор

Sir, Today if we download selenium for java we only get 6 jar files but the video you made a year ago show's that it had 47 jar files....what is the difference

buddinglearner
Автор

Hi Naveen, can u make a video on network emulation to online and offline mode ?? .. selenium 4

ajaynethaji
Автор

class A
{
public static void main (String [] arggs)
{
int fib1=0;
int fib2=1;
System.out.print(fib1+" "+ fib2);
for(int i=0; i<=10;i++)
{
int fib3=fib1+fib2;
System.out.print(fib3);
fib2=fib3;
fib1=fib2;
}
}
}

yogeshgowthu
Автор

42:04 If we add 0 at the start e.g. 01234 o/p is wrong. Can u pls share the correct logic?

prashantshetty
Автор

Hello sir,
Greetings of the day,
This is related to selenium tutorial.(Topic-iframe)
As i am learning from you tutorial, but the main problem is the username and password which you are using it not working. and i think this website got updated . can you recommend some other website for practice . or provide valid credentials for the same.
If you will provide it will be really helpfull.
thanks and Regards
Ashish

AshishSingh-pxcl
Автор

Fibonacci series option

Scanner scanner = new Scanner(System.in);


System.out.println("Enter number up to print the Fibonacci series: ");
int num = scanner.nextInt();

int f1 = 0;
int f2 = 1;
int sum = 0;
System.out.println(f1);
System.out.println(f2);

int counter = 2;

while(counter<num){
sum=f1+f2;
f1=f2;
f2=sum;
counter++;
System.out.println(sum);
}

Madhuri_recipes
Автор

Sir please tell me Telegram name
Unable to connect what show you on below details😢😢

beliveyourself