Syvum Home Page

Home > Quiz Games > Java Programming >

Java Programming : Flash Cards II


Learn Java programming through these flash cards.

Formats Worksheet / Test Paper Quiz Review
Flash Cards



Given below are two files:
File Employee.java

package purchase
public class Employee
{
protected double age = 35.00;
}


File Company.java

import purchase.Employee;
public class Company
{
public static void main(String arg[ ])
{
Employee e = new Employee( );
System.out.println("Age =" + e.age);
}
}

Will it compile? Yes or No. Give reason, if No.
 



Print Flashcards
Create Your Own Flash Cards


Contact Info © 1999-2025 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright