Computer Science, asked by aradhyasingh1232, 15 days ago

Q1 Give one example of each data type:
A. Integer
B. Float
C. Double
D. Character
E. String

1×5=5

Q2 Find the error in the following program and rewrite the program again correctly:
public class Hello
{
public state void mains(String args[])
{
System.println(“This is my first java program”);
}
}

2×1=2

Q3 Fill in the blanks to complete the following program:
Public class area // area of circle
{
a) _________________________________
{
Int r=0;
b) ____ area;
c) area=22.7*____*_____;
System.out.println(“Area is”,+area);
}
}

4×1=4

Q4 Draw execution cycle of java program. Explain the use of Java command in it. 3×1=3
Q5 Define:
A. Encapsulation B. Polymorphism C. Abstraction

Answers

Answered by MissQueenOfFashion
0

Answer:

refer to the attachment drop some thx plz

Attachments:
Similar questions