Practical OCA Java SE 8 Programmer I: Certification Guide (Java Basics) by Bhele Marks
Author:Bhele, Marks [Bhele, Marks]
Language: eng
Format: azw3
Published: 2017-09-10T04:00:00+00:00
To avoid using a fully qualified name to access a class or interface from a different package, we can simply use import statement and then use the class name without using a fully qualified name.
Let’s have a look at the example using import statement to import our classes or interfaces from different packages for use in our Auto class.
package com.xecson;
import automobile.small.Car;
automobile.big.Truck;
public class Auto{
Car smallCar;
Truck bigTruck;
}
The code looks a little neater now. So we have imported both Car and Truck classes into the Auto class. We then accessed the class names without using fully qualified class names.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Red Hat Certified Specialist in Services Management and Automation EX358 Exam Guide by Eric McLeroy(6140)
The KCNA Book by Nigel Poulton(4228)
Microsoft Security, Compliance, and Identity Fundamentals Exam Ref SC-900 by Dwayne Natwick(3598)
Designing and Implementing Microsoft Azure Networking Solutions by David Okeyode(3503)
Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide by Trevor Stuart and Joe Anich(3454)
Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide by Trevor Stuart & Joe Anich(3378)
TCP IP by Todd Lammle(2982)
Microsoft Power BI Data Analyst Certification Guide by Ed Corcoran Orrin Edenfield(2920)
Unity Certified Programmer: Exam Guide by Philip Walker(2552)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2520)
Networking A Beginner's Guide by Bruce Hallberg(2209)
Microsoft Power Platform Solution Architect's Handbook by Hugo Herrera(2036)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1860)
CompTIA A+ Practice Tests Core 1 (220-1101) and Core 2 (220-1102) by Ian Neil and Mark Birch(1794)
MCSA Windows Server 2016 Study Guide: Exam 70-741 by William Panek(1666)
PHP 7 Zend Certification Study Guide by Andrew Beak(1644)
Healthcare Information Security and Privacy (All-In-One) by Sean Murphy(1551)
CompTIA A+ Certification Guide (220-901 and 220-902) by Matthew Bennett(1526)
RHCSA & RHCE Red Hat Enterprise Linux 7: Training and Exam Preparation Guide (EX200 and EX300), Third Edition by Asghar Ghori(1488)
