Nexus 7 is the best Android tablet

Google's new Nexus 7 tablet isn't just the best small Android tablet you can buy. It's the best Android tablet, period.

The popular mini tablet, which Google (GOOGFortune 500) first released last year, has only improved with the arrival of the second iteration.
Blazing fast speed? Check. Slimmer, thinner and lighter? Check. Gorgeous, Retina-quality seven-inch display? Check. The purest and most up-to-date version of Android. Check. World-beating value at $230? Jackpot.
For the value, it's CNNMoney's Best in Tech for the small tablet category.
The base model Nexus 7 is now $30 more expensive than last year's version, but what you're getting in return are some of the best guts any tablet has to offer on the inside, which translates into beautiful results on outside. It's the same price as the similar, but slightly less-thrilling Amazon (AMZNFortune 500) Kindle Fire HDX, and it's $169 cheaper than the new iPad mini (which we haven't yet reviewed).

MacBook Air is the best Apple laptop

The MacBook Air is attractive, durable, thin and light - all qualities you want in a laptop.

It says a lot that the 2010 revamp of Apple's ultra-thin laptop was the lynchpin that single-handedly forced Intel (INTCFortune 500) to create the specifications for rival PC ultrabooks in 2011. Three years later, it's still the gold standard for laptop hardware -- and CNNMoney's Best in Tech for the Apple laptop category.
The MacBook Air's aluminum chassis is near perfect -- so much so that Apple (AAPLFortune 500) has gone nearly four years without making a major change to it.
On paper, the MacBook Air's low-power, dual-core Intel Core processor may seem modest, but it has been well-optimized to handle nearly anything you could throw at it. Web browsing, HD video and light photo and video editing are tasks well within the scope of the MacBook Air.
It also easily provides users with an entire workday's worth of power before having to recharge. Coders, gamers, and creative professionals will likely need more from their machines, but for the rest of us, the MacBook Air is plenty of machine. Apple's higher end MacBook Pro laptops are objectively more powerful. But for most people, the added benefits of the MacBook Pro simply don't justify the considerable extra cost over the MacBook Air, which starts at $999.
It may have made the biggest splash, with the usual tech-world buzz that arises around any Apple product announcement. But the iPad Air wasn't the only new tablet rolled out on Tuesday.
Both Microsoft and Nokia unveiled entries they hope will compete with Apple, Amazon's Kindle Fires, Google's Nexus tablets and a slew of other tabs running Google's Android operating system.
Nokia's first full-size tablet, the Lumia 2520, has a 10-inch display screen and runs a version of the the Windows 8 operating system. It sells for $499, with 4G LTE and a 6.7-megapixel back-facing camera.

It was introduced Tuesday, the same day Microsoft rolled out its next generation of tablet-laptop hybrids for sale. The Surface 2 starts at $449 for a 32GB model. It's thinner and more powerful than its predecessor and drops the confusing "RT" from the end of its name.
The souped-up Surface Pro 2 starts at $899 and runs all the way up to a whopping 512GB version (for $1,799) that puts that model closer to the laptop end of the spectrum.

That's just two more names jumping into the tablet fray as the holiday shopping season approaches.
On Tuesday, Apple CEO Tim Cook said that iPads account for 81% of all the world's tablet usage, suggesting sales and customer satisfaction combine to make it the hands-down leader in the field.
That may well be true. It's certainly hard to argue with the 170 million sales figure Cook announced for all iPads since they were introduced in 2010. But just two years ago, that usage number would have been closer to 100%, meaning the rest of the field has started chipping away at Apple's lead.
Samsung's Galaxy Tabs, in 10-and-7-inch varieties, have made a relatively strong run and Google's Nexus 7 has gotten almost unanimously positive reviews, with some critics declaring it superior to Apple's smaller iPad Mini.

All of which is to say that, when holiday shoppers are looking to shell out cash for a tablet this year, they'll have more options than ever. In the gallery above, we take a closer look at some of the top tablets on the market, as well as some of their newest competitors.

Calling the Constructor Method

Calling the Constructor Method

From the previous example


we now call the controctor method and invoke it in the new class EmployeeExample, Here is wat we have

 public class EmployeeExample {
   public static void main(String[] args) {
     Employee lucy = new Employee("lucy", "Lecturer", "IT", "1000000.0", wage, tax,bonus);
     lucy.displayEmployeeDetails(); //constructor method
   }
 }

Sample Code

Sample Code
Try out this, and comment with questions.

public class Employee {

   private String department;
   private String title;
   private Double salary, bonus, wage, tax;

   private String name;

   // The constructor method
   public Employee(String employeeDepartment, String employeeTitle, String employeeName, Double employeeSalary)
   {
     name = employeeName;
     title = employeeTitle;
     salary = employeeSalary;
     department = employeeDepartment;

//computing bonus, taxes and wages

bonus = (bonus_rate/100)* salary;
tax = (tax_rate/100) * salary;
wage = (salary + bonus)- tax;
   }

   // A method to display the state of the object to the screen
   public void displayEmployeeDetails()
   {
     System.out.println("Name: " + name);
     System.out.println("Title: " + title);
     System.out.println("Department: " + department);
System.out.println("Salary: " + salary + ". ");
     System.out.println("Wage: " + wage);
     System.out.println("Taxes: " + tax);
System.out.println("Bonus: " + bonus);
   }
 }