Why char array is favored over string for the storage of passwords?
Answer / Kristu Rai Toppo
"A char array is often favored over a String for storing passwords because a char array retains the characters as plain characters without any additional wrapping objects. This means that char arrays use less memory compared to Strings, and the password data is not subjected to automatic encodings or decodings like Strings are. However, it's important to remember that even though using char arrays may help in storing passwords securely, proper encryption techniques should still be applied to protect against unauthorized access."
| Is This Answer Correct ? | 0 Yes | 0 No |
who can we create the object of a class? in how many ways we can create it (max 5)
What are the advantages of java inner classes?
What is bifunction in java?
waht You know about thread programming?
What is a default constructor and also define copy contrucyor?
Is string is a data type in java?
Is hashmap thread safe?
Why do we need to override equals() and hascode() method of object class?
Which is faster string or stringbuilder?
What's the access scope of protected access specifier?
Difference between Web-based applications,Client- Server applications and Distributed applications?
Explain creating threads by extending thread class ?