← prev | next →
thealekss 2022-08-13 12:02:08
vishalsvisual 2022-08-13 12:01:37
For much better understanding Google for how Load Factor works.
Then you can understand by yourself.
But it could be 12 with loadfactor .75
astra 2022-08-13 12:18:06
thealekss 2022-08-13 12:02:08
But it could be 12 with loadfactor .75

12 not Power of 2
when capacity power of 2 , easy and more quickly to find the table index where the k-v should be fill in , and the index always less than real table size
thealekss 2022-08-13 12:18:59
astra 2022-08-13 12:18:06
12 not Power of 2
when capacity power of 2 , easy and more quickly to find the table index where the k-v should be fill in , and the index always less than real table size
Then it could be 8
vishalsvisual 2022-08-13 12:25:50
thealekss 2022-08-13 12:02:08
But it could be 12 with loadfactor .75
Initial capacity is 16 and load factor is 0.75.
.75×16 = 12.
vishalsvisual 2022-08-13 12:26:21
Means when 13th element will be added in HashMap
astra 2022-08-13 12:26:30
if >12 that will be resize to 16
vishalsvisual 2022-08-13 12:26:41
It’s size will be increased by 2 times
thealekss 2022-08-13 12:27:18
vishalsvisual 2022-08-13 12:26:41
It’s size will be increased by 2 times
But the question is why 16, but not, for example, 8
vishalsvisual 2022-08-13 12:27:48
astra 2022-08-13 12:26:30
if >12 that will be resize to 16
If 12 with load factor of .75
Then
.75×12 = 9
vishalsvisual 2022-08-13 12:28:38
Means when 10 element is added the the size becomes 12 to 24 that is 2 times of 12
vishalsvisual 2022-08-13 12:28:59
thealekss 2022-08-13 12:27:18
But the question is why 16, but not, for example, 8
Because of performance
thealekss 2022-08-13 12:29:59
vishalsvisual 2022-08-13 12:28:59
Because of performance
So, its based on some statistics
vishalsvisual 2022-08-13 12:30:11
After going through the much type of operations it was seen that 16 with .75 gives good performance.
vishalsvisual 2022-08-13 12:30:21
thealekss 2022-08-13 12:29:59
So, its based on some statistics
Yes
vishalsvisual 2022-08-13 12:30:55
That is why it also gives option to change on the basis of requirements.
Geetha 2022-08-13 13:12:22
Imtiyaz Momin 2022-08-13 09:24:54
There is no way to convert vb to spring boot directly. Just download spring boot project from google and add vb code with java syntax in it.
Thanks 👍
VAifonin 2022-08-13 13:41:55
Rohit Madaan 2022-08-13 10:42:41
@Service from package org.springframework.*
Unstoppable_op 2022-08-13 14:36:37
Unstoppable_op 2022-08-13 09:59:05
what’s happening wrong.
I’m getting this.
Please help
How can I remove this error ..
Santil Abishek 2022-08-13 14:51:39
Unstoppable_op 2022-08-13 14:36:37
Please help
How can I remove this error ..
I think there is ntng to read by sccanner
Santil Abishek 2022-08-13 14:52:13
If there is no option to Itrate ..how the sc.next function will work
a_v_1_3_7 2022-08-13 15:22:24
piyusha_a 2022-08-12 19:22:24
Hi Anyone have IT project using python or Java for college purpose to submit last year please if anyone have ping me
Yes iot ok?
a_v_1_3_7 2022-08-13 15:22:45
Vinutha B Jayanna 2022-08-12 18:13:56
Hii evryone *Any openings for freshers* ???
In which ?
i aspirant 2022-08-13 15:46:39
I have general enquiry
Learnin4ever 2022-08-13 15:50:10
Hi Everyone,
I am having doubts regarding my further career. I am currently working as a support engineer and have total experience of 11 months. Now, i am looking to enter in development roles. I am confused if I should learn SAP or learn React. Please anyone can answer this question. I have past knowledge in Java.
i aspirant 2022-08-13 15:50:55
I saw most of the java jobs requirements postings needs experience 4+, 5+ years normally.
Normally in other stacks like node/dotnet I don’t find this level of requirement.
why in java this much of experience wanted? Also many consulting companies recruit for java usually… could someone pls clarify why this process?
Also does java have opportunities in small companies, mid or startups?
blizz_pool 2022-08-13 16:09:31
{“data”:{“pages”:20,”count”:20,
“items”:[{“name”:”arsh”,”Id”:2},{“name”:”raj”:”Id”:3}]
I want to get the data from the items field in java can anyone suggest how can i get
smartcoder69 2022-08-13 16:11:43
Data.items
blizz_pool 2022-08-13 16:14:55
Showing error not found
Subhadip 2022-08-13 16:23:51
Any one can suggest me some resources for springboot microservices?
Indreshd 2022-08-13 17:21:37
vishalsvisual 2022-08-13 12:30:55
That is why it also gives option to change on the basis of requirements.
Tq bro for giving me the answer
← prev | next →