Geeks' Corner
Abstraction in Java
Access modifiers in Java
Arrays in Java
Classes and objects in Java
Constructors in Java
Control statements - decision making statements in Java
Encapsulation in Java
Exceptions in Java
Garbage collection in Java
How to write to a file in java using FileOutputStream
How to write to a file in java using FileOutputStream
Inheritance in Java
Input / Output in Java
Interfaces in Java
Loops in Java
Method overloading in Java
Use Java to send email
Variable scope in Java
Memory management and the Stack
The OS allocates memory for each process or program for data and code. The memory allocated for each process consists of many parts: the stack holds local variables, the heap holds dynamic memory, the data segment holds global variables, and finally the code segment which holds the code is and read only. Memory management depends on the hardware and the operating system. ...
Variable Scoping in Go
A scope in any programming is a region of the program where a defined variable can exist and beyond that the variable cannot be accessed. There are three places where variables can be declared in Go programming language. The first is local variables which are declared inside a function or a block. The second is global variables which are declared Outside of all functions. The last is parameters which are in the definition of function parameters. In this article, we will discuss what local va ...
Go Variables
A variable is a name given to a storage area that the programs can manipulate. Each variable in Go has a specific type, which determines the size and layout of the variable's memory, the range of values that can be stored within that memory, and the operations that can be applied to the variable. The name of a variable can contain letters, digits, and the underscore character. It must begin with either a letter or an underscore. Upper and lowercase letters are distinct because Go is case-sensit ...
Python Tuples
In Python, a tuple is a comma-separated sequence of values. Very similar to a list. However, there's an important difference between the two. The main difference between tuples and lists is that lists are mutable and tuples are not. A mutable object is one that can be changed. An immutable object is one that contains a fixed value that cannot be changed. If it needs to be changed, a new object must be created. Generally, we store different data inside a tuple than we would a list. Lists usua ...