java.lang


1. Creating and Initializing Objects:

// Creating an instance of the String class
String myString = new String("Hello World!");

2. Accessing Object Properties:

// Getting the length of the string
int length = myString.length();

3. Performing String Operations:

// Concatenating two strings
String newString = "Hello" + " " + "World!";

4. Comparing Objects:

// Comparing two strings for equality
boolean isEqual = myString.equals("Hello World!");

5. Converting Objects to Strings:

// Converting an integer to a string
String numberString = Integer.toString(123);

6. Parsing Strings to Objects:

// Parsing a string to an integer
int number = Integer.parseInt("123");

7. Formatting Strings:

8. Regular Expressions:

9. Threading:

10. Synchronization:

11. Exception Handling:

12. Collections: ArrayList:

13. Collections: HashSet:

14. Collections: HashMap:

15. Collections: Stream:

16. Lambda Expressions:

17. Generics:

18. Inheritance:

19. Polymorphism:

20. Interfaces:

21. Reflection:

22. Annotations:

23. JAR Files:

24. Class Loading:

25. Serialization:

26. Networking: Socket:

27. Networking: ServerSocket:

28. Networking: DataInputStream and DataOutputStream:

29. Networking: URL:

30. Networking: HttpClient:

31. Date and Time:

32. Formatting Date and Time:

33. Parsing Date and Time: