How the helper function is modifying the res Arraylist?
What will be the output ?
Like only spring or spring+some other technology?
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,
Like only spring or spring+some other technology?
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.
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
2
One in heap
And
Second one in string pool
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
Compilation error as try without catch or finally compiler will ask for finally block so either include finally or catch block
Any docs or any good vdo please send
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 😊👍
Any docs or any good vdo please send
Javatpoint is good. U can also look into baeldung
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
after checking in database or juat msg

Eclipse is taking too much time, any solution
Yes it will take at installation time just wait

Can some help me for this code
Guys atleast explain me…will try to code…
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
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.