Sunday, 22 September 2013

Wrapper Classes/Type Wrapper in java



DEFINITION : Wrapper classes in java as the name wraps or encapsulates the primitive data types such as int, char etc. and gives them an object like appearance which is mostly used in Collections because in Collections we can only add objects. They are also known as Type Wrappers because they convert the data types into a class type. WHY WE USE THEM? Since…
Read more

Sunday, 30 June 2013

DATA TYPES IN JAVA



DEFINITION : Data type in any language is the type of data that is used to represent the values such as the whole numbers(Integer types) , number with decimal points(floating point), characters etc.Data type in java language is one of the most fundamental element.There are two types of data in Java, these are :1. Primitive type2. Reference type PRIMITIVE…
Read more

Saturday, 15 June 2013

ME AND MY WECHAT GROUP



     This is the post for the WeChat (the best mobile messanger app) Contest. The five people I would like to connect with in WeChat are : 1. James Arthur Gosling : He is known as the    father of java programming language. He created the original design of java and implemented the language's original…
Read more

Saturday, 4 May 2013

Why Java is Secure and Portable ?



The answer is  BYTECODE.! Bytecode it the key that makes Java language most secure and Portable. When you compile your java program then on successful compilation , java compiler (javac) generates a class file with .class extension which contains the Bytecodes of your java program. Now the Bytecodes which are generated are secure and they can…
Read more

Wednesday, 24 April 2013

Music – Something that makes us (HP Connected Indiblogger meet)



An Experience : Last Saturday (20 April) , I had attended the indiblogger meet at Hilton Garden Inn Gurgaun Baani Square. I am sharing the experience of that meet with all of you which was organized by HP. I am writing about music in my blog which is all about the java language just because I want to share the experience of my first indiblogger meet.…
Read more

Friday, 19 April 2013

The 'new' operator in java



The 'new' operator in java is responsible for the creation of new object or we can say instance of a class. Actually, it dynamically allocates memory in the heap with the reference we define pointed from the stack. The dynamically allocation is just means that the memory is allocated at the run time of the program. The advantage of this approach is…
Read more

Wednesday, 10 April 2013

ACCESS SPECIFIERS/MODIFIERS IN JAVA



ACCESS SPECIFIERS/MODIFIERS IN JAVA Access Specifier/Modifier in any language defines the boundary and scope for accessing the method, variable and class etc. Java has defined four types of access specifiers. These are : 1.    Public 2.    Private 3.    Protected 4.    Default If you do not define any access specifier/modifier than java will take “default” access specifier…
Read more

Friday, 8 March 2013

FIRST JAVA PROGRAM - HELLO WORLD!



In order to write your first Java Program, you require : 1. JDK installed on your computer.     You can install it from here :      http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. Setting of environmental variable path. 3. A simple text editor. First Java Program - Hello World! The code looks like…
Read more

Wednesday, 6 March 2013

SETTING OF ENVIRONMENTAL VARIABLE PATH FOR JAVA



HOW TO SET THE ENVIRONMENTAL VARIABLE PATH FOR JAVA. In Windows inorder to set Step 1 : Right Click on  "My Computer"  and click on properties . Step 2 : Click on Advanced tab Step 3: Click on Environment Variables Step 4: Now copy the path of your jdk/bin from the program files which…
Read more