TCS Java Interview | Java Interview Questions and Answers

preview_player
Показать описание
For the program, please refer to the link.

In this video, we covered TCS java coding interview. The candidate got selected in TCS with the package of 9LPA.

#java
#javainterviewquestions
#javaprogramming
Рекомендации по теме
Комментарии
Автор

To remove duplicate we can also use distinct() method

Jyotiranjansahoovlogs
Автор

List<Integer> concat=Stream.concat(list1.stream(), list2.stream()).

YogeshwariM-sc
Автор

I given the interview for one product based company recently .. they asked me one question which I am not able to answer..it would be helpful if you solve this question ! thanks in advance.... Q: given the list of unsorted numbers and asked me to sort the elements in ascending order or descending order...condition is not to use the loops, and dont have to predefined methods too and dont have to use streams as well..

rajeshroyal
Автор

Do they ask really easy question like this?

DeepakGupta-wvhv
Автор

Do they really ask such easy questions 🙄, but kudos to your knowledge...

shobhitgupta
Автор

How to check any given number is Armstrong number or not without using any inbuilt methods or math functions.( not 3 digit, 4 or 5 digit number)

manjunathareddy
Автор

I dont get the x1-x2 part can some one explain it please?

karthickraja
Автор

Bro if in support project means can I apply after java developer line

Mahesh-emvy
Автор

import java.util.*;
import java.util.stream.*;
public class Main
{
public static void main(String[] args) {
//
List<Integer> list1=Arrays.asList(10, 12, 19, 13, 23);
List<Integer> list2=Arrays.asList(10, 12, 19, 34, 30);
Stream<Integer> list3=Stream.concat(list1.stream(), list2.stream());
Set<Integer>
System.out.println(set);
}
}

We can use this also for first question

imranhossain
visit shbcf.ru