The following are some questions about Java basic concepts. They are also frequently asked during interviews.
- Strings
- Create Java String Using ††or Constructor?
- What is Java String’s immutability?
- Why string is immutable in Java ?
- String is passed by “reference” in Java ?
- Top 10 FAQs of Java Strings
- How to determine if a character in String is number or not?
- How to detect if a string contains only uppercase letter?
- Arrays
- What Arrays look like in Memory?
- Top 10 Methods for Java Arrays
- Deep Understanding of Arrays.sort()
- How to Check if an Array Contains a Value in Java Efficiently?
- What is Varargs?
- Common Methods
- Comparable vs Comparator
- How Java Compiler Generate Code for Overloaded and Overridden Methods?Â
- equals() and hashCode() Contract
- Java hashCode() and equals() Contract for the contains(Object o) Method of Set
- Enum
- Date Formatting
- Using Java Libraries
- Exceptions
- Regular Expression
- Regular Expression in 8 mins
- Regular Expression: Exclude a Word
- Regular Expression: Online Tester
- Regular Expression: Backreferences
- Top 10 Questions about Java Regular Expression
- Java Fun
- Practical Usage Examples
- Java method for spliting a camelcase string
- Java Code: Given range, return an array of N random numbers
- Java Method to Shuffle an Array
- Sort content in a txt file
- How to write a crawler by using Java?
- Schedule a java task to run at a certain time, and wrap it as a windows service
- An Entry Example of Log4j
- A simple example to show how to use java properties file
- A tool to increase blog visitor count
- Convert java jar file to exe
- Java code: Open IE browser and close it
- Please set java.home to a JDK installation
- Using Java to read web page
- java.util.Scanner
There are more Java API Examples from programcreek.