How the helper function is modifying the res Arraylist?

|
Debanik Kundu 2022-08-06 09:43:07
try amigoscode
BNFPLAYER 2022-08-06 09:55:24
Can anyone please share the book spring microservices in action ..if you have
i aspirant 2022-08-06 10:06:45
Hi all, I am new to Advanced Java and Speingboot. I hv learned springboot and I know how to create rest api at basic level.i want to move beyond that level. Ex Authention login and on.
Do anyone you have some guidance/advices on learning practically.Can you pls point some resources youtube videos for practically implementing.Thanks for your time for spending,
Learnin4ever 2022-08-06 10:21:42
Debiprasad Dash 2022-08-06 07:00:41
Learn spring

Like only spring or spring+some other technology?

Learnin4ever 2022-08-06 10:25:17
catlover975890 2022-08-06 08:40:14
Hi, I have doubt in the below code:

class Solution {
public List<Integer> inorderTraversal(TreeNode root) {
List<Integer> res = new ArrayList<>();
helper(root, res);
return res;
}

public void helper(TreeNode root, List<Integer> res) {
if (root != null) {
helper(root.left, res);
res.add(root.val);
helper(root.right, res);
}
}
}

How the helper function is modifying the res Arraylist?

This is basically you are doing inorder traversal , where first it is storing all the nodes in left subtree, then node and then the root and then nodes
in right subtree. This way I think the elements are inserted in the list and it is being modified.

AjayKumar_03 2022-08-06 10:39:49
I prepared small doc regarding Thread Synchronization-
It covers below Topics:
1. What is Thread Synchronization
2. Various ways to achieve thread Synchronization
3. Synchronized method and block use case
4. Thread safe or Re-Entrant code
5. Synchronization for static members
6. Issues with Synchronized methods and solution

Thread Synchronization is and important topic for interview

Amit_Joshi 2022-08-06 10:45:39
krishnamoorthi1804 2022-08-06 06:12:18
hi anyone know by using new keyword in string how may object are create

2
One in heap
And
Second one in string pool

Amit_Joshi 2022-08-06 10:48:45
krishnamoorthi1804 2022-08-05 17:29:48
If I get input from user as string where this object is created heap or SCP anyone tell me

If taking input in literal form ,i.e., String a =”abc”;
This goes in sting pool

If going to take as new argument .i.e. String a =new String(“abc”);
Then in heap as well as string pool

Amit_Joshi 2022-08-06 10:50:25
Amit Kumar Jha 2022-08-05 09:21:52
What will be the output ??

Compilation error as try without catch or finally compiler will ask for finally block so either include finally or catch block

Debiprasad Dash 2022-08-06 11:04:18
How hashmap works internally
Any docs or any good vdo please send
krishnamoorthi1804 2022-08-06 11:11:30
Amit_Joshi 2022-08-06 10:48:45
If taking input in literal form ,i.e., String a =”abc”;
This goes in sting pool

If going to take as new argument .i.e. String a =new String(“abc”);
Then in heap as well as string pool

Understood thanks 😊👍

catlover975890 2022-08-06 11:16:06
Debiprasad Dash 2022-08-06 11:04:18
How hashmap works internally
Any docs or any good vdo please send

Javatpoint is good. U can also look into baeldung

Sumanth Rao 2022-08-06 14:24:28
Hi team , I want to learn spring boot , but i didn’t find any tutorials or material. If you have anything please let me know
Sumanth Rao 2022-08-06 14:25:43
i aspirant 2022-08-06 10:06:45
Hi all, I am new to Advanced Java and Speingboot. I hv learned springboot and I know how to create rest api at basic level.i want to move beyond that level. Ex Authention login and on.
Do anyone you have some guidance/advices on learning practically.Can you pls point some resources youtube videos for practically implementing.Thanks for your time for spending,

Please give spring boot training vedioes link , it will be helpful for me

J7237Rohit Saste 2022-08-06 14:28:36
I want to get return some msg like “email is already exist” in postman using spring boot
J7237Rohit Saste 2022-08-06 14:29:15
How to implement api for these task
J7237Rohit Saste 2022-08-06 14:29:41
Pls help
Backhere 2022-08-06 14:30:05
J7237Rohit Saste 2022-08-06 14:28:36
I want to get return some msg like “email is already exist” in postman using spring boot

after checking in database or juat msg

J7237Rohit Saste 2022-08-06 14:30:33
After checking in db
Backhere 2022-08-06 14:31:17
you can find it on google easily
J7237Rohit Saste 2022-08-06 14:32:39
Yes, i tried but cant search
CoderVR007 2022-08-06 17:28:01
springbootmicroservices-71915.jpg
Eclipse is taking too much time, any solution
Debiprasad Dash 2022-08-06 17:28:31
CoderVR007 2022-08-06 17:28:01
Eclipse is taking too much time, any solution

Yes it will take at installation time just wait

CoderVR007 2022-08-06 17:28:38
Ok
Wissaliix 2022-08-06 20:31:16
guys i want to send picture to be analyzed with an API using spring boot and get the result of this analyse
yogesh 2022-08-06 21:10:07
springbootmicroservices-71943.jpg
Can some help me for this code
yogesh 2022-08-06 21:15:55
yogesh 2022-08-06 21:10:07
Can some help me for this code

Guys atleast explain me…will try to code…

AkashVaish 2022-08-06 21:45:42
i’m getting this error while connecting with database: An error was encountered performing the requested operation:

Listener refused the connection with the following error:
ORA-12528, TNS:listener: all appropriate instances are blocking new connections
(CONNECTION_ID=/6XiLMlvTced1q4UIh9YLA==)

Vendor code 12528

AkashVaish 2022-08-06 21:46:03
plz help me to resolve this issue
Silu9777 2022-08-07 02:14:51
AkashVaish 2022-08-06 21:45:42
i’m getting this error while connecting with database: An error was encountered performing the requested operation:

Listener refused the connection with the following error:
ORA-12528, TNS:listener: all appropriate instances are blocking new connections
(CONNECTION_ID=/6XiLMlvTced1q4UIh9YLA==)

Vendor code 12528

Remote connection is not available for the DB user.

|