[VV4] jdbc, SpringBoot interview, react hook, scrum values, green concatenation, self-affirmation 6 Ps, IDE poll
JAVA CERTIFICATION QUESTION: Database application with JDBC
Which two of the following statements are correct about JDBC?
Java trail ???https://lnkd.in/gZet8iaZ
Answer: A database connection URL is a string that your DBMS JDBC driver uses to connect to a database. It can contain information such as where to search for the database, the name of the database to connect to, and configuration properties. The exact syntax of a database connection URL is specified by your DBMS. The only requirement is that it's the form jdbc:[subprotocol]:[subname]. This means option A is correct while option B isn't. Option E is incorrect since username and password may not be required - it's database dependent. Using the Class.forName method to load drivers is a must prior to JDBC 4.0. This method isn't?required for JDBC 4.0+. However, doing so is harmless, and no exception is thrown. Therefore, option C is correct while option D isn't.
·? pu? ? s? ???su? ?????o? ???
?? Spring Boot Interview Questions
Src. ???https://lnkd.in/e-ecHmbG
QUOTE
REACT: What is a Hook? ??
Hooks were added to React in version 16.8. ?? Hooks allow function components to have access to state and other React features. ?? Because of this, class components are generally no longer needed.?? ???????? ????? ????????? ??????? ????? ??????????, ????? ??? ?? ????? ?? ?????? ??????? ???? ?????.
Hooks allow us to "hook" into React features such as state and lifecycle methods.??
EXAMPLE:
Here is an example of a Hook.
import React, { useState } from "react";
import ReactDOM from "react-dom/client";
function FavoriteColor() {
?const [color, setColor] = useState("red");
?return (
?<>
? <h1>My favorite color is {color}!</h1>
? <button
? type="button"
? onClick={() => setColor("blue")}
? >Blue</button>
? <button
? type="button"
? onClick={() => setColor("red")}
? >Red</button>
?</>
?);
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<FavoriteColor />);
You must import Hooks from react. Here we are using the useState Hook to keep track of the application state. State generally refers to application data or properties that need to be tracked.
3 HOOK RULES
????: ????? ???? ??? ???? ?? ????? ????? ??????????.
CUSTOM HOOK
If you have stateful logic that needs to be reused in several components, you can build your own custom Hooks.??
Scrum Values
Successful use of Scrum depends on people becoming more proficient in living five values:
Commitment?, Focus??, Openness??, Respect??, and Courage??
The Scrum Team commits ? to achieving its goals and to supporting each other. Their primary focus ?? is on the work of the Sprint to make the best possible progress toward these goals ??. The Scrum Team and its stakeholders are open ?? about the work and the challenges. Scrum Team members respect ?? ♀? each other to be capable, independent people, and are respected as such by the people with whom they work. The Scrum Team members have the courage ?? ?? to do the right thing, and to work on tough problems.
These values give direction to the Scrum Team with regard to their work, actions, and behavior. The decisions that are made, the steps taken, and the way Scrum is used should reinforce ?? these values, not diminish or undermine them.
The Scrum Team members learn and explore the values as they work with the Scrum events and artifacts. When these values are embodied by the Scrum Team and the people they work with, the empirical Scrum pillars of transparency, inspection, and adaptation come to life building trust ??.
领英推荐
?? ?? GREEN IT Developer:?Make the most of string concatenation
JavaScript generates temporary variables in the background when performing variable concatenation. Due to this, some syntax is more efficient than others and uses less RAM.
Instead of:
a += 'x' + 'y';
write:
a += 'x';
a += 'y';
SOFT-SKILL: the P's to SELF-AFFIRMATION ??? ??????? ?
How do you get yourself aligned with your wishes?
Do so by following the empowerment P's: Positive ?, Personal ??, Persistent ??, Powerful ??, Practical ???, Present Tense ?
1) POSITIVE ?
Keeping it to top positive. Your brain cannot understand the word no. Don't fail. Don't lose your money. Don't don't don't. The mind doesn't hear negatives. Well, so the first piece of positive self-talk is: "I want to keep it positive". Instead of I have to, I get to, I have to go to work. Negative that's doomed to fail. I have to lose weight. That's a negative. Instead, focus on the positive. I need to get into shape, I need to increase my energy, I need to eat well, not I can't have pizza, I can't have ice cream. So we want to create the first P: I want to be positive. I want to look for something good.
2) PERSONAL ??
The second P is to keep it personal. I want Bob to do such and such. I want the world to be fairer. Those aren't going to work. I can't control those but I can control myself. I want to be stronger. I keep it personal. Keep it about you. Don't make it about somebody else.
3) PERSISTENT ??
I want to be persistent. It becomes persistent by persisting every day. Are you a visual person ?? Put up pictures. Are you an auditory person ?? Make sure you say it here. So are you kinaesthetic ?? Talk to yourself about how things should feel.
4) POWERFUL ??
Well make it powerful but make it something you can really buy into. I can be dedicated to this. I can own it. It's important to me but I can BELIEVE it. If you can't believe it you will never achieve it. The everyday reinforcement with the persistence technics: It's going to strengthen you. It's going to happen.
5) PRACTICAL ??
Now let's add the next piece to the thing and make it practical. Is it something I really want? Is it something that's meaningful to me? Well, let's keep it practical. I want that vacation. Maybe I want that vacation to BALI maybe I want to have that practical image. Practical simply means in this context that I can believe it that I can buy into it.
6) PRESENT TENSE ?
And the last piece is simple it's present tense. Emotions and feelings are always in the here and now. If I make it in the future it will never occur. I want to change next year. The mind will wait until next year. I want to now. So what do you do? You tell yourself I am powerful. I am resourceful. I can achieve keep things in the present tense. Now if you take this set of these personal, persistent, positive, present, powerful, practical, and you use them on a regular basis you're going to find out that it's shifting the programming in your mind. You're becoming what you want to be.
GOING FURTHER ?? Positive self-talk:?https://lnkd.in/efAtbBxz
POLL RESULTS: Java devs, just a curiosity poll. What's your main IDE?
JOKE
Do you know why they name the Java language after an island???? Because it is above C. (sea)