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

Asked 7 years ago
Viewed 447 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. 

answered 7 years ago by Prateek sharma

Your Answer