Hai friend! Welcome to our tutorial. Today we are going to discuss the features of Java and try to find why Java became popular.
Let us start with a real world scenario. Suppose a company decided to hire a candidate for an opening. It has offices at different locations in the world. Also imagine that Naresh is going to apply for this position. One more point here is even the company has worldwide locations I am interested to apply for Bangalore India only. I mean other than this location I am not interested to work any where. I am location dependent. Is the company going to prefer me? Not at all.
Generally companies going to prefer the candidates who are able to relocate anywhere in the universe :). The people who are willing to work at any location can be termed as location independent. Means they does not depend on location.
Like the same way imagine if you have written a program on one system say Windows XP operating system. If the same program is not going to work on other operating system like Linux OS we can say that the program is system dependent or platform dependent. Less people prefer these programs because in future there may be a chance of changing the system and the program simply becomes useless.
Java is Platform Independent. You already know what this means!
In real world there is no data and no logic. Imagine that every one is an object. Let us say that Naresh is also an object. I have some attributes like height, weight and color. I also exhibit functionalities like walking, talking, swimming and blogging :) etc.
If any problem is going to be solved by this type of thinking you can say that it is an object oriented program. Of course there are a lot of features to be supported by a program in order to term it as an object oriented programming example.
Java supports Object Oriented Programming. I will try to cover these features later.
Let us consider one more feature of Java. Java is secure.
Suppose if you want to meet a top minister to discuss some personal things.
Generally VIP's enjoy high security. So in order to meet them you have to first approach a high command person who actually used to transfer the message to that person. That means between you and the VIP there exists another person who used to interact with VIP and you. But why is this mediator? You know pretty well to protect the minister.
Like the same way Java provides one type of sandbox effect where you are going to interact with the system via JVM. That means you are not going to directly access the system. It is via JVM sandbox. This way Java became secured.
Let us discuss one more feature. Suppose I told you to add two numbers. Then you should get those two values so that addition can be performed on those numbers. But I have given values as n and b. Can you add two letters? No. So immediately you should say that please give a number and not letter. This time I given a number 9. Is it sufficient to perform addition on single number? No. Again you will say that please give me two numbers. This is the way a computer should be programmed. Never expect user will input as per your thinking. We cannot predict a user mind. Your program should handle all type of inputs and should provide appropriate action based upon the particular mistake. These type of features makes a language error free. Also referred as robust.
Java is robust.
Java supports many more features like multithreading, automatic memory management, distributed programming and so on.
I will expand this post later.
Let us start with a real world scenario. Suppose a company decided to hire a candidate for an opening. It has offices at different locations in the world. Also imagine that Naresh is going to apply for this position. One more point here is even the company has worldwide locations I am interested to apply for Bangalore India only. I mean other than this location I am not interested to work any where. I am location dependent. Is the company going to prefer me? Not at all.
Generally companies going to prefer the candidates who are able to relocate anywhere in the universe :). The people who are willing to work at any location can be termed as location independent. Means they does not depend on location.
Like the same way imagine if you have written a program on one system say Windows XP operating system. If the same program is not going to work on other operating system like Linux OS we can say that the program is system dependent or platform dependent. Less people prefer these programs because in future there may be a chance of changing the system and the program simply becomes useless.
Java is Platform Independent. You already know what this means!
In real world there is no data and no logic. Imagine that every one is an object. Let us say that Naresh is also an object. I have some attributes like height, weight and color. I also exhibit functionalities like walking, talking, swimming and blogging :) etc.
If any problem is going to be solved by this type of thinking you can say that it is an object oriented program. Of course there are a lot of features to be supported by a program in order to term it as an object oriented programming example.
Java supports Object Oriented Programming. I will try to cover these features later.
Let us consider one more feature of Java. Java is secure.
Suppose if you want to meet a top minister to discuss some personal things.
Generally VIP's enjoy high security. So in order to meet them you have to first approach a high command person who actually used to transfer the message to that person. That means between you and the VIP there exists another person who used to interact with VIP and you. But why is this mediator? You know pretty well to protect the minister.
Like the same way Java provides one type of sandbox effect where you are going to interact with the system via JVM. That means you are not going to directly access the system. It is via JVM sandbox. This way Java became secured.
Let us discuss one more feature. Suppose I told you to add two numbers. Then you should get those two values so that addition can be performed on those numbers. But I have given values as n and b. Can you add two letters? No. So immediately you should say that please give a number and not letter. This time I given a number 9. Is it sufficient to perform addition on single number? No. Again you will say that please give me two numbers. This is the way a computer should be programmed. Never expect user will input as per your thinking. We cannot predict a user mind. Your program should handle all type of inputs and should provide appropriate action based upon the particular mistake. These type of features makes a language error free. Also referred as robust.
Java is robust.
Java supports many more features like multithreading, automatic memory management, distributed programming and so on.
I will expand this post later.
No comments:
Post a Comment