Explain Features of Java - Introduction

1) Simple
• Similar to C/C++ in syntax
• But eliminates several complexities of
– No operator overloading
– No direct pointer manipulation or pointer arithmetic
– No multiple inheritance
– No malloc() and free() – handles memory automatically
– Garbage Collector
• Lots more things which make Java more attractive.
2) Object-Oriented
• Fundamentally based on OOP
– Classes and Objects
– Uses a formal OOP type system
– Lends an inherent structure/organization for how wewrite Java programs
• Unlike spaghetti code in languages like Perl
– Efficient re-use of packages such that the programmeronly cares about the interface and not the implementation
3) Distributed / Network Oriented
• Java grew up in the days of the Internet
– Inherently network friendly
– Original release of Java came with Networking libraries
– Newer releases contain even more for handlingdistributed applications
• RMI, Transactions
4) Robust / Secure / Safe
• Designed with the intention of being secure
– No pointer arithmetic or memory management!
– The JVM “verifier”
• Checks integrity of byte-codes
– Dynamic runtime checking for pointer and array access
• No buffer overflow bugs!
– SecurityManager to check which operations a piece ofcode is allowed to do
– “Sandbox” operation for applets and other untrustedcode
• Limited set of operations or resources made available
• Contrast to ActiveX
5) Portable
• “Write-Once Run-Anywhere”
• The Java Virtual Machine becomes the common denominator
– Bytecodes are common across all platforms
– JVM hides the complexity of working on a particularplatform
• Difficult to implement a JVM
• But simpler for the application developer
• Java does this well
6) High-Performance
• Java performance IS slower than C
• Tradeoff between development time vs. run time
• Additional checks in Java which make is secure androbust and network aware etc, all have a small cost.
• BUT
– JIT compilation and HotSpot
• Dynamic compilation of bytecode to native code atruntime to improve performance
– HotSpot optimizes code on the fly based on dynamicexecution patterns
• Can sometimes be even faster than compiled C code!
7) Multi-Threaded
• Native support for threading
– We will cover this in a lot of detail
• Basic concept
– The ability to have multiple flows of control/programswhich appear to run at the same time
• Processes - application level
• Threads – within the application
– JVM uses native threads on operating system butprovides a consistent abstraction for the developer.
8) Dynamic
• Java is “self-aware”
– Java code can look at itself and tell what interfaces itexports (Introspection)
– Can dynamically load new classes/code at runtime
9) Java Programmer Efficiency
• Faster Development
– More programmer friendly
– Less error prone
• OOP
– Easier to manage large development projects
• Robust memory system
– No pointer arithmetic and manual memory management.Garbage collector!
• Libraries
– Re-use of code

Categories

10th 3i InfoTech Academic Books Accenture ACIO ActiveX ADT Agricultural AIEEE Air Force Algebraic Amdocs Android Answers Application Development Aptitude Aptitude Questions Architectures ASP ATOS B.Sc B.Tech.B.E. Bank Exam BCA BE Board Exam Books break-continue Business Plan C C Programming C# C++ Campus campus interview Candidate profile Capgemini Career CDS Certification CET Challenge Circle Cisco class code Cognizant communication Company Company Profile Competitive Exams computer Computer Networks concentric circles constructor Course Credit Suisse CSS CTS Data Structure DBMS DC Deloitte difficult interview questions dimensions Distributed Computing do while dotNet Download ds Dynamic Web Development e-Admit card Educational engineering entertainment Even Odd Events exam schedule exception for loop fresher GATE general Discussion general knowledge Get Placed Government Job Hall Ticket HCL how to answer How to Prepare HR HR Interview HSC hypertext preprocessor IB IBM IBPS IIT Indian Army Information infosys Intelligence Bureau Internship interview Experience interview questions Interview Tips IntroC IntroC# IntroJava IntroPHP IT J2EE J2ME Java JavaScript jobs Language Books Language Tutorial Languages limit number of objectsJava Limit the number of objects being created in JAVA Linux Linux Administrator Linux Developer Logical Questions loops M Tech M.E. M.Tech M.Tech AND B.Tech Management Management Skills Matrices MBA mca ME microsoft mistakes Mixture Mobile Computing mock questions mock test MySql naukri NDA OOP opening Operating System Oracle paper Persistent PHP php programming php string variables PL/SQL Placement placement guide Placement Paper Placement Process preparing for placement presentation probability Problems Professional program Programming Project Engineer project idea Projects Puzzle qualities Question of the day Questions Quiz Question Recruitment Recruitment Pattern Requirement Result Resume Reviews Screen Sizes Scripting Session Skills Software Software Engineering solved papers Source Code Speed time and distance SQL SSC story Stress Interview Study Material study tips submit resume Synonym TCS Tech Mahindra tech news Technical Books Technical Interview Testing thank you letter Thought Time Table TutC++ Unix questions asked in aptitude and inteviews for MCA UPSC verbal Web Designing Web Developer Website Development What to read while loop Wipro Writing Resume

Receive Quality Tutorials Straight in your Inbox by submitting your Email ID below.

Categories

10th 3i InfoTech Academic Books Accenture ACIO ActiveX ADT Agricultural AIEEE Air Force Algebraic Amdocs Android Answers Application Development Aptitude Aptitude Questions Architectures ASP ATOS B.Sc B.Tech.B.E. Bank Exam BCA BE Board Exam Books break-continue Business Plan C C Programming C# C++ Campus campus interview Candidate profile Capgemini Career CDS Certification CET Challenge Circle Cisco class code Cognizant communication Company Company Profile Competitive Exams computer Computer Networks concentric circles constructor Course Credit Suisse CSS CTS Data Structure DBMS DC Deloitte difficult interview questions dimensions Distributed Computing do while dotNet Download ds Dynamic Web Development e-Admit card Educational engineering entertainment Even Odd Events exam schedule exception for loop fresher GATE general Discussion general knowledge Get Placed Government Job Hall Ticket HCL how to answer How to Prepare HR HR Interview HSC hypertext preprocessor IB IBM IBPS IIT Indian Army Information infosys Intelligence Bureau Internship interview Experience interview questions Interview Tips IntroC IntroC# IntroJava IntroPHP IT J2EE J2ME Java JavaScript jobs Language Books Language Tutorial Languages limit number of objectsJava Limit the number of objects being created in JAVA Linux Linux Administrator Linux Developer Logical Questions loops M Tech M.E. M.Tech M.Tech AND B.Tech Management Management Skills Matrices MBA mca ME microsoft mistakes Mixture Mobile Computing mock questions mock test MySql naukri NDA OOP opening Operating System Oracle paper Persistent PHP php programming php string variables PL/SQL Placement placement guide Placement Paper Placement Process preparing for placement presentation probability Problems Professional program Programming Project Engineer project idea Projects Puzzle qualities Question of the day Questions Quiz Question Recruitment Recruitment Pattern Requirement Result Resume Reviews Screen Sizes Scripting Session Skills Software Software Engineering solved papers Source Code Speed time and distance SQL SSC story Stress Interview Study Material study tips submit resume Synonym TCS Tech Mahindra tech news Technical Books Technical Interview Testing thank you letter Thought Time Table TutC++ Unix questions asked in aptitude and inteviews for MCA UPSC verbal Web Designing Web Developer Website Development What to read while loop Wipro Writing Resume