Skip to content

Commit d5cb5cf

Browse files
Java project setup
Java project setup
0 parents  commit d5cb5cf

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

.classpath

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="output" path="bin"/>
6+
</classpath>

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin/

.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Java</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

src/VariableAndDataTypes.java

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
public class VariableAndDataTypes {
3+
4+
public static void main(String[] args) {
5+
6+
//What is variable - Variable is name of memory location to store values.
7+
// we use variable to store data and use the data once it is required.
8+
9+
//Data Type - Data type specifies the size and type of values that can be stored in an identifier.
10+
// There are 2 data type is java
11+
//1- Primitive Data Types: Byte, Short, int , long, float, double, boolean, char
12+
//2- non-Primitive Data Types: String, Array, classes , interfaces
13+
14+
15+
}
16+
17+
}

0 commit comments

Comments
 (0)