Skip to content
murmot

Results for “java constructor return string in array python site:geeksforgeeks.org 2”

  • geeksforgeeks.org

    Constructors in Python - GeeksforGeeks

    Constructors help assign initial values to object attributes and prepare objects for use. When an object is created: The __new__() method creates and returns a new instance of the class. The __init__() method initializes the newly created object.

  • geeksforgeeks.org

    DSA in JAVA - GeeksforGeeks

    This beginner-friendly guide covers Data Structures and Algorithms (DSA) in Java, including built-in structures like arrays, strings, ArrayList, HashMap, HashSet, and user-defined structures such as linked lists, stacks, queues, trees, heaps, and graphs.

  • geeksforgeeks.org

    Python Lists - GeeksforGeeks

    Python Lists. Last Updated : 19 Sep, 2026. List is a built-in data structure used to store an ordered collection of items. They are dynamic, resizable and capable of storing multiple data types. List elements can be changed, updated, added, or removed after the list is created.

  • geeksforgeeks.org

    String Arrays in Java - GeeksforGeeks

    Oct 2, 2025 ... A String Array in Java is an array that stores string values. In this article, we will learn the concepts of String Arrays in Java including ...

  • geeksforgeeks.org

    Python return statement - GeeksforGeeks

    When the return statement is executed, the function immediately stops running and sends the specified value back to the caller. If no value is mentioned after return, Python automatically returns None.

  • geeksforgeeks.org

    Arrays in Java - GeeksforGeeks

    Nov 20, 2026 ... Java allows arrays to be passed as arguments and returned from methods. 1. Passing an Array: When an array is passed to a method, a copy of its ...