Possible To Sort The Heterogeneous Values In Java? Automation Testing Interview Question | Java

preview_player
Показать описание
In this video, I'm asking a question about sorting heterogeneous values in Java. Can you sort a list of String values in Java in a specific order? I'm looking for an answer that uses the standard library, so if you can provide me with an elegant solution to this problem, that would be awesome!

If you're looking for a Java question to quiz your friends on, or you want to see how well you're doing on the Java certification exams, then check out this question! I'm sure you'll be able to solve it quickly and easily!

Please fill out the above form to join any course of mine with a discount
You can also call us at +91 8009900785

Join this channel to get access to the perks:
Some important java questions for Interviews:
Java Interview Question
1 Explain what happens in complication and interpretation
2 How java internally works
3 how to calculate the range of each datatype?
4 Can I have a size of datatype in bits and bytes? True or false?
5 What is the use of the super keyword?
6 Why do you use try and catch?
7 What is the default value of the boolean data type in the global variable?
8 Explain what is public static void main?
9 Explain method overloading?
10 Explain method overriding?
11 What ae the rules of method overriding ?
12 can you override static method?
13 Which company own java?
14 Why java is called as platform specific?
15 What are literals?
16 What are the types of tokens in java?
17 can you override the constructor?
18 name some Java Keywords?
19 In case of multiple if block statements how many maximum if blocks may get printed?
20 What are local and global variables?
21 Where do we use the final keyword?
22 Name some string functions?
23 Can you overload static method?
24 what is the difference between static and nonstatic
25 Explain JVM memory?
26 Explain SIB and IIB?
27 What is method overloading?
28 What is method overriding?
29 Can you overload non static method?
30 Can you overload the constructor?
31 Does the queue allow duplicate value?
32 Why do you use throw and throws
33 What are the types of inheritance?
34 For each try it is required to have catch block?
35 What is Abstract class?
36 Why multiple inheritance is not possible ?
37 What is interface?
38 Can you even overload the main method?
39 What is type casting? and its types?
40 What are the disadvantages of array?
41 What is super calling statement ?
42 can we do downcasting only implicitly?
43 What are constructors?
44 Can we do narrowing by both implicitly and explicitly?
45 Can a supercalling statement be parametrized and non-parametrized?
46 Can a constructor be parametrized and non-parametrized?
47 Why we go for collections?
48 What is constructor overloading?
49 What are this keyword and this calling statement?
50 What is the order of execution between SIB, IIb,main method and constructor
51 What is inheritance?
52 Does Constructo have the return type?
53 Can we have multiple catch block for a single try block
54 Why we need a scanner class?
55 Name some exceptions that you have seen?

Like, share and subscribe to the channel.
API Testing Playlist

Core Java Playlist

Selenium Playlist

Manual testing Playlist

Adding my blog link

Adding my personal mail Id:

Adding my Quora profile link here:

Adding my Twitter account here,
or
Facebook Page:

Join us on Telegram today,
SoftwaretestingbyMKT
For the latest update on software jobs and to discuss each and everything about Software Testing also get an opportunity to get on an audio/video call with me directly to you.
I make videos on daily basics and also help student all over the world for FREE. If my videos are helpful in anyway help "SoftwaretestingbyMKT" reach billions by supporting
OR
Рекомендации по теме
Комментарии
Автор

Yes, you can sort heterogeneous values in Java using the Comparable or Comparator interfaces.

carlos
Автор

Same type values is required for sorting

toxicgaming
Автор

It's not possible to sort heterogeneous values, but we can try for homogeneous values

aditya_kittu
Автор

It's not possible to store heterogenous values in java, we can store only homogenous values using sort

Itsme_Saku
Автор

No heterogeneous values can not be sorted . We can apply sorting on homogeneous values only

shraddhahajirakar
Автор

No only homegeneous value can be sorted

nehasharma-vhzd
Автор

No only homogenous values can be sorted in java.

shwetakumari
Автор

No, only homogeneous values can be sorted.

mahisentertainment
Автор

No, we can't sort heterogeneous values in Java

rahimunissabegum