Question: what is the difference between extends and import in java?
Answer: keywords import is used to import or call the files from outsourse to our java programe while keyword extends is used to inherit the class in the particular class. Basically import indicate to call the classes and files,not to use them, But extends indicate to use the parent class in the child class.