Wednesday, 16 May 2012

(May 14'2012 - May 16'2012)

Its the second week of my training and believe me, the first three days, really had developed an urge and curiosity in me to learn Java. This past weekend, i had searched the Internet extensively to know more about Java.
      Our week started with detailed study of Data Types valid in Java and within first three days of this week, we covered VariablesOperators used in java too, along with the previously mentioned topic.

Java defines eight primitive types of data: byte, short, int, long, char, float, double, and boolean.These can be put in four groups:-

• Integers This group includes byte, short, int, and long, which are for whole-valued signed numbers.

• Floating-point numbers This group includes float and double, which represent numbers with fractional precision.

• Characters This group includes char, which represents symbols in a character set, like letters and numbers.
• Boolean This group includes boolean, which is a special type for representing true/false values.
               The rest of the things we already know as we have studied in C++ , so i think that would be enough about data types. About Variables, they are defined by the combination of an identifier, a type, and an optional initializer. 
Example: int a, b, c; // declares three ints, a, b, and c.
and, char x = 'x'; // the variable x has the value 'x'.


         Similarly, we also know well about operators. Those used in java are Arithmetic, Logical, Assignment, Relational, Bit-wise, Increment/Decrement, Shift, Ternary, Compound Assignment and Typecasting.


Saturday, 12 May 2012

First Week Of Training (May 9' 2012-May 11' 2012)

May 9'2012 -
Today was the first day of my 6 week Industrial Training. I had enrolled for the Core Java course at HCL CDC (Career Development Center) Chandigarh. We were introduced to our technical trainer Ms.Upasana Khare , our technical head Ms.Cheena and center head Mr.Ashish Koul. The first class started with an introductory session. We were told about the rules and regulations and a pre-plan of how the training will proceed.

May 10'2012 -
On the second day, our C++ concepts were brushed up and tested. We went through Polymorphism, Encapsulation, Inheritance, Abstraction, Classes, Objects and all the OOP concepts. After this, we were told about the Birth of Java and about the rest of its history and evolution. The class left me in anticipation and curiosity to learn more about this programming language.

May 11'2012 -
We were already told about Java's history and evolution. Today, i was taught the syntax for a basic java program and about java tokens in detail. I made my first program in java today. Initially we used Notepad and Command Prompt i.e without an Integrated Development Environment (IDE) to run the program, then we used Netbeans 7.1.2 i.e in an IDE.

Syntax for a simple java program:



public class Classname {
    public static void main(String args[ ])
    {
        System.out.println("Hello World");
    }
}

OUTPUT:-

Hello World