1)String buffer are synchronised,thread safe,slower than string builder 2) string builder are not synchronised,not thread safe,faster than string builder 3) both are mutable
String buffer is synchronized string builder is not synchronized is both are mutable string builder multiple threading possible but string buffer not possible these two types of strings are using new keywords only not litteral string
In string buffer the methods are synchronised hence we are use in multithread enviorenment and on otherhand StringBuilder this is not synchrinised hence this is not thread safe or not use in multithread enviorenment , Stringbuffer is slower than Stringbuilder and Stringbuilder is more faster than String buffer both are use for temporrary operations
String Buffer is mutable 1.it is also thread safe 2. also synchronized 3.it is created inside the heap memory 4.performance wise it is slow String Builder 1.it is not thread safe 2.also not synchronized 3.it is also created inside the heap memory 4.preformance wise builder is faster
String buffer stores the value in stack replaces the old value with new value. It is synchronised and thread safe. It is slower than string builder. And String builder is same as string buffer only diffrenece is not thread safe and not synchronised.
what is Pojo? what's your challenges in API testing? how many authentication in rest assured? difference array and arraylist ? memory and size , static and nonstatic what's benefit page object design pattern ? how to reserved string ? How you write excel file from automation ?
Hi @rdautomationlearing609 Thanks for the this mock interview while attending interview I just saw this video before 1 day and it is very helpful to me to crack the interview…😊
Sir, can you please give the proper answer of the question that you have asked like "how you implement Abstraction in your framework" ? Can we just say like we have implement listener interface in our framework and by implementing interface we can achieve full abstraction .
In Page Object Model design pattern, we write locators (such as id, name, xpath etc.,) and the methods in a Page Class. We utilize these locators in tests but we can’t see the implementation of the methods. Literally we hide the implementations of the locators from the tests.
In String buffer inbuilt method reverse() with using that we can easily reverse the string . StringBuffer sb = new StringBuffer("India!"); Sop(+sb); sb.reverse(); Sop(+sb);
1 ) using for loop
2) string buffer
3) string builder
By using 2 & 3 method
Object.reverse()
Different ways to reverse a string
1. For loop
2.String Builder using reverse()
3. String buffer using toCharArray()
And recursion with string buffer
Using List
Collections.reverse
Best example for overloading is print statement.
And overriding goes hand in hand with inheritance.
11:58 Array list supports only object Not primitive data types
Where Array supports both primitive and reference data types
1. Using for loops
2. Using the String reverse method
3.using chatAt() method
1)String buffer are synchronised,thread safe,slower than string builder
2) string builder are not synchronised,not thread safe,faster than string builder
3) both are mutable
String buffer is synchronized string builder is not synchronized is both are mutable string builder multiple threading possible but string buffer not possible these two types of strings are using new keywords only not litteral string
In string buffer the methods are synchronised hence we are use in multithread enviorenment and on otherhand StringBuilder this is not synchrinised hence this is not thread safe or not use in multithread enviorenment ,
Stringbuffer is slower than Stringbuilder and Stringbuilder is more faster than String buffer both are use for temporrary operations
String Buffer is mutable
1.it is also thread safe
2. also synchronized
3.it is created inside the heap memory
4.performance wise it is slow
String Builder
1.it is not thread safe
2.also not synchronized
3.it is also created inside the heap memory
4.preformance wise builder is faster
String buffer stores the value in stack replaces the old value with new value. It is synchronised and thread safe. It is slower than string builder. And String builder is same as string buffer only diffrenece is not thread safe and not synchronised.
Hi si happy to see you all the interviews on testing so by seeing your interviews I want to get start career in automation testing software
what is Pojo?
what's your challenges in API testing?
how many authentication in rest assured?
difference array and arraylist ? memory and size , static and nonstatic
what's benefit page object design pattern ?
how to reserved string ?
How you write excel file from automation ?
String input = "My name is abhishek";
StringBuilder input1 = new StringBuilder();
input1.append(input);
input1.reverse();
System.out.println(input1);
Length ()-1 is a method by using this one we can reverse the string
Hi @rdautomationlearing609 Thanks for the this mock interview while attending interview I just saw this video before 1 day and it is very helpful to me to crack the interview…😊
Could you please share your LinkedIn profile link..?
11.48>> Object and primitive can both be stored in an array but in collection, only Object type can stored. isn't it?
Sir, can you please give the proper answer of the question that you have asked like "how you implement Abstraction in your framework" ?
Can we just say like we have implement listener interface in our framework and by implementing interface we can achieve full abstraction .
In Page Object Model design pattern, we write locators (such as id, name, xpath etc.,) and the methods in a Page Class. We utilize these locators in tests but we can’t see the implementation of the methods. Literally we hide the implementations of the locators from the tests.
Please add java coding questions in your interviews.
In String buffer inbuilt method reverse() with using that we can easily reverse the string . StringBuffer sb = new StringBuffer("India!"); Sop(+sb); sb.reverse(); Sop(+sb);
Class can have only 2 access modifiers default and private
There are some scenarios where you have to maintain same space. For that all these solutions are invalid.
Sir where we use pojo classes in Automation
Rest assured, with the help of pojo class we can create payload body,
String buffer is synchronised were string builder is not... string buffer is slower than string builder
Sir how can I get my mock interview scheduled with you?