-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01-java_intro.txt
More file actions
17 lines (17 loc) · 1 KB
/
Copy path01-java_intro.txt
File metadata and controls
17 lines (17 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Java is an object oriented programming which means it inyteract with objects
objects:- those utilities which posses some properties and some functions. Object is an instance of a class
Class:- It is an encapsulation of instance variables (data members) and methods.
Access specifiers: private, public,protected
Inheritance: It is a mechanism in which a class inherits features of an existing class. Theclass whose feature inherits is superclass and which inherits is derived class.
Inheritance types in java-
1. single
2. multilevel
3 hierarchial
Multiple inheritance does not comes in java but concept can be achieved with help of interface.
Polymorphism: Binding of similar apperance different behaviour.
Variable:- item whose value keeps on chnaging
Identifier- user defined name given to any variable,constant,class etc.
Reserved words-those words which are having special meaning in language and cannot be redefined . Java has 50 reserved words
Operators:
Arthematic :-> +,-,*,\,%
Relational operators:-> >,<,>=,<=,==,!=