Books by Nerdynaut
Computer

Features of JAVA

Features of JAVA
  • Simple : Syntax is based on C++. So easier to learn for programmers with C++ knowledge.​
  • Object Oriented : Organized as a combination of different types of objects that incorporate with behavior.

  • Secured
  1. ​​ No explicit pointer
  2. Programs run inside virtual machine sandbox

  • Robust
  1. Strong memory management
  2.  Lack of pointers that avoids security problems
  3.  Automatic waste collection
  4. Exception handling and type checking mechanism

  • Portable : Can carry the JAVA bite code in any platform

 

  • Dynamic  : Platform Independent A platform is the hardware or the software environment in which the programs run. There are two types, hardware based and software based. JAVA provides software based platform. It has two components.
  1.  Runtime Environment
  2. API (Application Programming Interface)

 

  • Architecture Neutral : No implementation depend features.​

​Naming Conventions in JAVA

JAVA naming conventions are rules to follow when deciding identifiers such as class, variables, constant, methods etc.: This is not forced to follow but all the good programmers follow naming conventions in JAVA.It makes your code easier to understand to others as well as to yourself because readability is very important in JAVA programming.

Name 
Convention 
Class name
  • Should start with uppercase letter
  • Should be a noun

E.g. – String , Color , System   

Interface name
  • Should start with uppercase letter
  • Should be an adjective

E.g. – Remote , Runnable  

Method name
  • Should start with lowercase letter
  • Should be a verb

E.g. – main(), print()

Variable name
  • Should start with lowercase letter

E.g. – firstName , packageNumber 

Package name
  • Should be in lowercase letters
Constant name
  • All letters should be in uppercase

E.g. – RED , BOX , SHIRT

​CamelCase in JAVA naming conventions

CamelCase in JAVA represents the naming of class, interface, variable and methods. If the name has two words the second name should start with an uppercase letter. E.g. – firstName
Thamali Epa

Thamali is a contributor at Nerdynaut Staff.

  • Fascinated
  • Happy
  • Sad
  • Angry
  • Bored
  • Afraid
3 Comments

3 Comments

  1. Anirudh.B.S.

    May 3, 2016 at 2:01 pm

    Very helpful article 🙂

    • Nitu

      May 3, 2016 at 8:27 pm

      Agreed

  2. Chathurie Niluka Nupearachchi

    May 10, 2016 at 7:34 am

    Very informative article. It actually brushed up my forgotten stuff about JAVA.
    Keep going!

Leave a Reply

Your email address will not be published. Required fields are marked *

This Month's Most Popular Posts

Books by Nerdynaut
To Top