Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
String, StringBuffer & StringBuilder for JAVA Interviews
Rating: 4.7 out of 5(1,163 ratings)
33,760 students

String, StringBuffer & StringBuilder for JAVA Interviews

To clear Java interviews with confidence
Created byDURGASOFT DURGA
Last updated 7/2019
English

What you'll learn

  • Student can get much perfection on Java String , StringBuffer and StringBuilder concepts

Course content

3 sections24 lectures5h 11m total length
  • Difference between String and StringBuffer: Mutability Vs Immutability16:10

    Explore the difference between string and StringBuffer, clarifying immutability of strings and mutability of StringBuffer, with practical examples for Java interviews and certification.

  • Difference between String and StringBuffer: == Operator Vs equals() method14:10
  • String Objects Creation : Heap and String Constant Pool(SCP) Part-118:14

    Explore how string objects are created in Java, comparing heap versus the string constant pool, and how immutability and the new operator influence object lifetime and garbage collection.

  • String Objects Creation : Heap and String Constant Pool(SCP) Part-26:26

    Explore how string objects are created in Java, including heap allocation and the string constant pool (SCP), with interning examples and object-count scenarios for interviews.

  • String Objects Creation : Heap and String Constant Pool(SCP) Part-317:28
  • Importance of String Constant Pool(SCP)14:33

    Discover how the string constant pool enables sharing a single string object across many references to improve memory efficiency. Understand immutability, why modifications create new objects, and prevent side effects.

  • Important FAQs on String and StringBuffer10:34

    Explore why string objects are immutable while StringBuffer is mutable, and how memory management and immutable wrapper classes influence string handling in Java interviews.

  • Important Constructors of String class11:29
  • Important Methods of String class:charAt(),concat(),equals(),equalsIgnoreCase()15:47

    Explore key string class methods in Java—charAt, concat, equals, and equalsIgnoreCase—along with index handling, string concatenation with + and +=, and case-sensitive versus case-insensitive equality.

  • Important Methods of String class:isEmpty(),length(),replace(),substring()17:51
  • Important Methods of String class:indexOf(),lastIndexOf(),toLowerCase(),toUpperC8:09

    Explore how to use indexOf and lastIndexOf to locate characters in strings, understand -1 for absent characters, and convert cases with toLowerCase and toUpperCase in Java.

  • Important Methods of String class: trim() method and its use case23:22
  • Important Conclusions about String Immutability15:02

    Explore the immutability of strings, how operations like toUpperCase can create new objects, how equals versus == behave, and how the heap stores objects and references.

  • Creation of Our Own Immutable Class11:42

    Explore immutability and how to design our own immutable class with an example in Java, using private fields, constructors, and safe modify methods that return new objects.

  • final vs immutability9:13

    Clarify the difference between final and immutability in Java by showing how a final reference does not guarantee an immutable object, with examples using String, StringBuffer, and final variables.

Requirements

  • It's desirable to have some minimum basic knowledge of Java

Description

The student can get complete knowledge on the following topics:

1. Difference between String and StringBuffer:

          * Mutability Vs Immutability

  * equals() method

2. String Objects Creation : Heap and String Constant Pool(SCP)

3. Importance of String Constant Pool(SCP)

4. Important FAQs on String and StringBuffer

5. Important Constructors of String class

6. Important Methods of String class:

        charAt(), concat(), equals(), equalsIgnoreCase()

        isEmpty(), length(), replace(), substring()

        indexOf(), lastIndexOf(), toLowerCase(), toUpperCase()

trim()

7. Important Conclusions about String Immutability

8. Creation of Our Own Immutable Class

9. final vs immutability

10. Need of StringBuffer ?

11. StringBuffer class Constructors 

12. Important Methods of StringBuffer class:   

      length(), capacity(), charAt(), setCharAt(), append()

      insert(), delete(),  deleteCharAt(),reverse() 

      setLength(), ensureCapacity(), trimToSize() 

13. Need of StringBuilder

14. Differences between StringBuffer and StringBuffer

15. String vs StringBuffer and StringBuilder

16. Method Chaining

Who this course is for:

  • Anyone looking to clear Java Certification
  • Anyone looking to clear Java Interviews
  • Anyone to get perfection on day to day coding requirements on String,StringBuffer and StringBuider Concepts