1. what is full form of oops?
2.what is different between class and object ?
3. how will you define an instance in java?
4. what is different between object and instance?
5. why class is called as blueprint?
6. do 'class' is a keyword? will this code compile?
public class Class{}
7. which type of properties does class has ? which properties or behavior need object to be called.
public class callkr{
int x=50; //line 1
static int x1=51; //line 2
public void show(){} //line 3
public static void show1(){}//line 4
}
8. what is static member and non static member of the class?
9. why we have properties in any class ?
10.why should we keep behavior or function in any class ?
12.what type of relation do class show with properties and behavior ?
13.Can we have a class without any properties and behavior ?
14.do you know encapsulation . what does encapsulation means in java ?
15.What is class diagram ? write a code for below class diagram?
Class Diagram
Class Callkr
| |
· eid
· salary
|
Non-Static variables or Instance variable or
non-static fields/properties
|
· joiningDate ( )
· getSalary( )
· Report ( )
|
Non-Static methods or
Non-static behaviors
|
16. Write a program to show Encapsulation in class ?
17. what do u mean by Abstraction ? write a simple code and explain where we can see
abstraction in your code ?
18. what is inheritance concept ?
19. Do we always need a parent class to achieve inheritance in java. ?
20. write a simple code to show inheritance in java?
No comments:
Post a Comment