Java HashMap with Realtime Examples
http://www.javachain.com/java-hashmap-with-examples/
http://www.javachain.com/java-hashmap-with-examples/
25 Multithreading Interview Questions (With Example Answers) | Indeed.com
https://www.indeed.com/career-advice/interviewing/multithreading-interview-questions
https://www.indeed.com/career-advice/interviewing/multithreading-interview-questions
Indeed Career Guide
24 Multithreading Interview Questions (With Example Answers)
Learn about 24 common interview questions related to multithreading and review example answers to help you prepare for an interview with a hiring manager.
In Iterator, hasMoreElements() method of Enumeration has been changed to:
Anonymous Quiz
28%
hasNextElement()
23%
isNext()
44%
hasNext()
5%
name remains same
TreeSet internally uses which one to store elements?
Anonymous Quiz
19%
HashMap
19%
LinkedHashMap
58%
TreeMap
4%
None
An attempt to add null key to a TreeSet will result in:
Anonymous Quiz
14%
Will compile
36%
Compile time Exception
8%
Error
42%
Runtime - NullPointerException
10 Tips to Help You Stand Out as a Java Developer | by John Selawsky | Mar, 2021 | Better Programming
https://betterprogramming.pub/10-tips-to-help-you-stand-out-as-a-java-developer-9865516584ae
https://betterprogramming.pub/10-tips-to-help-you-stand-out-as-a-java-developer-9865516584ae
Medium
10 Tips to Help You Stand Out as a Java Developer
What you need to know to master Java
Java String Interview Questions
=======================
1) Is String a keyword in Java?
2) Is String a primitive type or derived type?
3) In how many ways you can create string objects in Java?
4) What is string constant pool?
5) What is special about string objects as compared to objects of other derived types?
6) What do you mean by mutable and immutable objects?
7) Which is the final class in these three classes – String, StringBuffer and StringBuilder?
8) What is the difference between String, StringBuffer and StringBuilder?
9) Why StringBuffer and StringBuilder classes are introduced in Java when there already exist String class to represent the set of characters?
10) How many objects will be created in the following code and where they will be stored in the memory?
String s1 = "abc";
String s2 = "abc";
11) How do you create mutable string objects?
12) Which one will you prefer among “==” and equals() method to compare two string objects?
13) Which class do you recommend among String, StringBuffer and StringBuilder classes if I want mutable and thread safe objects?
14) How do you convert given string to char array?
15) How many objects will be created in the following code and where they will be stored?
String s1 = new String("abc");
String s2 = "abc";
16) Where exactly string constant pool is located in the memory?
17) I am performing lots of string concatenation and string modification in my code. which class among string, StringBuffer and StringBuilder improves the performance of my code. Remember I also want thread safe code?
18) What is string intern?
19) What is the main difference between Java strings and C, C++ strings?
20) How many objects will be created in the following code and where they will be stored?
String s1 = new String("abc");
String s2 = new String("abc");
21) Can we call String class methods using string literals?
22) do you have any idea why strings have been made immutable in Java?
23) What do you think about string constant pool? Why they have provided this pool as we can store string objects in the heap memory itself?
24) What is the similarity and difference between String and StringBuffer class?
25) What is the similarity and difference between StringBuffer and StringBuilder class?
26) How do you count the number of occurrences of each character in a string?
27) How do you remove all white spaces from a string in Java?
28) How do you find duplicate characters in a string?
29) Write a Java program to reverse a string?
30) Write a Java program to check whether two strings are anagram or not?
31) Write a Java program to reverse a given string with preserving the position of spaces?
32) How do you convert string to integer and integer to string in Java?
33) Write a code to prove that strings are immutable in Java?
34) Write a code to check whether one string is a rotation of another?
35) Write a Java program to reverse each word of a given string?
36) Print all substrings of a string in Java?
37) Print common characters between two strings in alphabetical order in Java?
38) How find maximum occurring character in a string in Java?
39) What is difference between Java 8 StringJoiner, String.join() and Collectors.joining()?
40) How to reverse a sentence word by word in Java?
=======================
1) Is String a keyword in Java?
2) Is String a primitive type or derived type?
3) In how many ways you can create string objects in Java?
4) What is string constant pool?
5) What is special about string objects as compared to objects of other derived types?
6) What do you mean by mutable and immutable objects?
7) Which is the final class in these three classes – String, StringBuffer and StringBuilder?
8) What is the difference between String, StringBuffer and StringBuilder?
9) Why StringBuffer and StringBuilder classes are introduced in Java when there already exist String class to represent the set of characters?
10) How many objects will be created in the following code and where they will be stored in the memory?
String s1 = "abc";
String s2 = "abc";
11) How do you create mutable string objects?
12) Which one will you prefer among “==” and equals() method to compare two string objects?
13) Which class do you recommend among String, StringBuffer and StringBuilder classes if I want mutable and thread safe objects?
14) How do you convert given string to char array?
15) How many objects will be created in the following code and where they will be stored?
String s1 = new String("abc");
String s2 = "abc";
16) Where exactly string constant pool is located in the memory?
17) I am performing lots of string concatenation and string modification in my code. which class among string, StringBuffer and StringBuilder improves the performance of my code. Remember I also want thread safe code?
18) What is string intern?
19) What is the main difference between Java strings and C, C++ strings?
20) How many objects will be created in the following code and where they will be stored?
String s1 = new String("abc");
String s2 = new String("abc");
21) Can we call String class methods using string literals?
22) do you have any idea why strings have been made immutable in Java?
23) What do you think about string constant pool? Why they have provided this pool as we can store string objects in the heap memory itself?
24) What is the similarity and difference between String and StringBuffer class?
25) What is the similarity and difference between StringBuffer and StringBuilder class?
26) How do you count the number of occurrences of each character in a string?
27) How do you remove all white spaces from a string in Java?
28) How do you find duplicate characters in a string?
29) Write a Java program to reverse a string?
30) Write a Java program to check whether two strings are anagram or not?
31) Write a Java program to reverse a given string with preserving the position of spaces?
32) How do you convert string to integer and integer to string in Java?
33) Write a code to prove that strings are immutable in Java?
34) Write a code to check whether one string is a rotation of another?
35) Write a Java program to reverse each word of a given string?
36) Print all substrings of a string in Java?
37) Print common characters between two strings in alphabetical order in Java?
38) How find maximum occurring character in a string in Java?
39) What is difference between Java 8 StringJoiner, String.join() and Collectors.joining()?
40) How to reverse a sentence word by word in Java?
Where is an array stored into the memory?
Anonymous Quiz
49%
Heap Space
23%
Stack Space
16%
Heap Space & Stack Space
12%
First generation memory
Which of the following are TCL commands?
Anonymous Quiz
17%
UPDATE & TRUNCATE
30%
SELECT & INSERT
22%
GRANT & REVOKE
31%
ROLLBACK & SAVEPOINT
What does SAM stands for in the context of Functional Interface?
Anonymous Quiz
9%
Single Ambivalue method
77%
Single Abstract Method
0%
Simple active markup
15%
Simple abstract markup