What's the difference between a file, a class and an activity in android?

Asked 10-Jan-2018
Viewed 379 times

1

What's the difference between a file, a class and an activity in android?


1 Answer


0

file  - a file is a block which contains some information. it can be of any type.

class -  a class can be defined as a blueprint which contains datatypes, methods, variables. these files are generated after execution of .java file.

Activity -  an activity is a class in android which is used for loading of UI elements in the view.