Skip to content

Commit ba4351b

Browse files
author
Ram swaroop
committed
added content
1 parent 2684c80 commit ba4351b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

_posts/2015-05-14-variables-and-literals.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: post
33
title: Variables and Literals
4-
published: true
54
---
65

76
Variables are devices that are used to store data, such as a number, or a string of character data so that we can
@@ -235,4 +234,10 @@ into code like:
235234
System.out.println("Bill" + " Joy");
236235
{% endhighlight %}
237236

237+
### Literal values for Non-primitives
238+
239+
Variables are just bit holders, with a designated type. You can have an `int` holder, a `double` holder, a `long` holder,
240+
and even a `String[]` holder. This holder is assigned a bunch of bits representing the value. For primitives, the bits
241+
represent __a numeric value__ but for non-primitives, these bits represent __a way to get to the object__.
242+
238243

0 commit comments

Comments
 (0)