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

1 votes
163 views
Anonymous User asked 10-Jan-2018 in Technology by Anonymous User

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

1 Answer

0 votes
Prateek sharma answered 11-Jan-2018 by Prateek sharma

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.