Thursday, 13 March 2014

Java

Java in Career for Students | Graduates | Professionals & Masters

Know About Avira Anti Virus

Avira Family Protection Suite

Avira Family Protection Suite

Ideal for the modern parent, this advanced platform combines all the security benefits of cutting-edge antivirus with powerful tools to protect your children while online and safeguard their reputation on social networks.Avira Ultimate Protection Suite

Avira Ultimate Protection Suite

This is our most comprehensive security and performance enhancing solution on offer. From 200GB of multi-device online data backup to protection for your financial transactions, your family and your online privacy—it has it all.


Avira Free Mac Security

Avira Free Mac Security

Avira Free Mac Security packs award-winning malware detection into a smart application that almost never needs your attention. Just install it and continue to enjoy your Mac, free of viruses and free of antivirus hassles too.


Avira Secure Backup

Avira Secure Backup

Easily backup, remotely access and share all your media and documents across multiple devices. Automated backups avoid permanent data loss, while powerful encryption technology assures the privacy of your personal information.



Avira System Speedup

Avira System Speedup

In just one minute, you can cut loose all the accumulated runaway processes, bad registry entries and files lost in limbo that are bogging down your computer. Unleash the potential of your PC; optimize the use of your programs and files to recover your PC’s lost speed.




Avira Free Android Security

Avira Free Android Security

There’s nothing like a missing smartphone to make you feel lost. Use our free app to shield your data and track down your phone.

Java Lesson -2


First Java Program:
Let us look at a simple code that would print the words Hello World.
public class MyFirstJavaProgram{

   /* This is my first java program. 
    * This will print 'Hello World' as the output
    */

    public static void main(String []args){
       System.out.println("Hello World"); // prints Hello World
    }
}
About Java programs, it is very important to keep in mind the following points.
  • Case Sensitivity - Java is case sensitive which means identifier Hello and hello would have different meaning in Java.
  • Class Names - For all class names the first letter should be in Upper Case. 

    If several words are used to form a name of the class each inner words first letter should be in Upper Case.

    Example
     class MyFirstJavaClass
  • Method Names - All method names should start with a Lower Case letter. 

    If several words are used to form the name of the method, then each inner word's first letter should be in Upper Case.

    Example
     public void myMethodName()
  • Program File Name - Name of the program file should exactly match the class name. 

    When saving the file you should save it using the class name (Remember java is case sensitive) and append '.java' to the end of the name. (if the file name and the class name do not match your program will not compile).

    Example : Assume 'MyFirstJavaProgram' is the class name. Then the file should be saved as'MyFirstJavaProgram.java'
  • public static void main(String args[]) - java program processing starts from the main() method which is a mandatory part of every java program..
Java Identifiers:
All java components require names. Names used for classes, variables and methods are called identifiers.
In java there are several points to remember about identifiers. They are as follows:
  • All identifiers should begin with a letter (A to Z or a to z ), currency character ($) or an underscore (_).
  • After the first character identifiers can have any combination of characters.
  • A key word cannot be used as an identifier.
  • Most importantly identifiers are case sensitive.
  • Examples of legal identifiers:age, $salary, _value, __1_value
  • Examples of illegal identifiers : 123abc, -salary
Java Modifiers:
Like other languages it is possible to modify classes, methods etc by using modifiers. There are two categories of modifiers.
  • Access Modifiers : default, public , protected, private
  • Non-access Modifiers : final, abstract, strictfp
We will be looking into more details about modifiers in the next section.
Java Variables:
We would see following type of variables in Java:
  • Local Variables
  • Class Variables (Static Variables)
  • Instance Variables (Non static variables)
Java Arrays:
Arrays are objects that store multiple variables of the same type. However an Array itself is an object on the heap. We will look into how to declare, construct and initialize in the upcoming chapters.
Java Enums:
Enums were introduced in java 5.0. Enums restrict a variable to have one of only a few predefined values. The values in this enumerated list are called enums.
With the use of enums it is possible to reduce the number of bugs in your code.
For example if we consider an application for a fresh juice shop it would be possible to restrict the glass size to small, medium and Large. This would make sure that it would not allow anyone to order any size other than the small, medium or large.
Example:
class FreshJuice{

   enum FreshJuiceSize{ SIZE, MEDIUM, LARGE }
   FreshJuiceSize size;
}

public class FreshJuiceTest{

   public static void main(String args[]){
      FreshJuice juice = new FreshJuice();
      juice.size = FreshJuice. FreshJuiceSize.MEDIUM ;
   }
}

Note: enums can be declared as their own or inside a class. Methods, variables, constructors can be defined inside enums as well.

Java Class -1

Java Lesson -1

What is Java?
Java is:
  • Object Oriented
  • Platform independent:
  • Simple
  • Secure
  • Architectural- neutral
  • Portable
  • Robust
  • Multi-threaded
  • Interpreted
  • High Performance
  • Distributed
  • Dynamic
Java Environment Setup:
Java SE is freely available from the link Download Java. So you download a version based on your operating system.
You can refer to installation guide for a complete detail.
Java Basic Syntax:

  • Object - Objects have states and behaviors. Example: A dog has states-color, name, breed as well as behaviors -wagging, barking, eating. An object is an instance of a class.
  • Class - A class can be defined as a template/ blue print that describe the behaviors/states that object of its type support.
  • Methods - A method is basically a behavior. A class can contain many methods. It is in methods where the logics are written, data is manipulated and all the actions are executed.
  • Instant Variables - Each object has its unique set of instant variables. An object's state is created by the values assigned to these instant variables.

Earn Online Money with Publishing

Stop Surfing (YouTube , FaceBook , Twitter , or Other Websites) , Start Publishing Websites & Earn Money with These....Safe Your Future for Comming Future.

  1. Earn Money  with Youtube to upload Videos
  2. Earning with Facebook
  3. Earning with Google AdSense
  4. Earn with AdSense without website
  5. Earn with Skype
  6. Earn Money with Blogging thro" Blogger |Wordpres|Drupal|Joomla
  7. Earn Money with Selling products
  8. Earn Money with Affiliate Marketing
  9. Earn Money with Free lancing
  10. Earn Money with PTC sites 
  11. Earn Money with Offering services
  12. PPC Ads
  13. CPA Ads
  14. Earn Money with Writing jobs
  15. Translation jobs
  16. Data Entry jobs
  17. Earn Money with Online Teaching
  18. Earn Money with Selling Videos
  19. Selling Photos
  20. Earn with forum posting
  21. Earn by reading emails
  22. CPM Ads
  23. Earn with adf.ly
  24. Earn with buy Sell Ads
  25. Earn with Forex trading
  26. Earn Money with  SEO (Very Hot Job)

||Know About Quick Heal Antivirus||


Quick Heal Total Security
Quick Heal Total Security
Comprehensive Antivirus Protection. Parental Control. Data and Privacy Protection.

Best antivirus technology brings you more than just a safe web browsing experience. New and improved features ensure that your data and privacy is safe while browsing unsafe sites or using unknown programs.

  • Advanced DNAScan technology gives assured virus protection by running a scan for suspicious programs.

  • Faster PC performance with inbuilt PCTuner facility.

Quick Heal Internet SecurityQuick Heal Internet Security
Secure Browsing. Fast Detection. Cloud-Based Email Filtering.

Quick Heal Internet Security eliminates the risk factors involved with online threats while you surf the internet. The internet security protection makes activities like browsing, social networking and online purchases more safe and secure.

  • Enhanced web security brings the best antivirus engine, silent firewall and phishing protection.
  • Improved Parental Control feature authorizes user-specific restrictions.


Quick Heal AntiVirus ProQuick Heal  AntiVirus Pro
Smart. Light. Effective.

The simple interface and best virus protection technology of Quick Heal AntiVirus Pro ensures complete security without interrupting or slowing down your system.

  • Real time cloud security restricts access to malware infected websites.
  • Spam filters stop phishing and infected emails from reaching your inbox.
  • Uninterrupted PC usage and viewing without prompts.