Download Class 10 Computer Applications Concept Summaries: ICSE Class 10 Computer Applications Chapter 01 Elements of Java Notes and Important Questions with Answers
Access comprehensive revision notes for Chapter 01 Elements of Java using the ICSE Class 10 Computer Applications Chapter 01 Elements of Java Notes and Important Questions with Answers. Designed to align with the 2026-27 academic syllabus for Class 10 Computer Applications, these concept summaries help students streamline their exam preparation and review complex topics efficiently.
Access Chapter 01 Elements of Java Notes and Study Material
View or download the dedicated Chapter 01 Elements of Java revision resource below. Engaging with these structured concept notes daily ensures continuous academic progress and mastery of the 2026-27 curriculum for Computer Applications.
These ICSE Class 10 Computer Applications notes on Elements of Java cover the key terms and definitions together with 34 solved questions. They explain Java features, identifiers, primitive data types, operators and expressions, increment and decrement, type casting, loops and errors, with worked outputs and corrected programs.
Important Terms and Definitions
1. Java is portable and machine-independent.
2. It has no language processor. So, pre-processor directives are not required. Header files and packages are imported.
3. It is architecturally independent.
4. It does not support (i) Global functions, (ii) Templates, (iii) Operator overloading, (iv) Multiple inheritance (through classes).
5. Java programs are compiled (from Source code to Byte code) and interpreted (Byte code to Output) both.
6. A class is the smallest element of a Java program. Java codes are written within a class.
7. Java uses 16-bit Unicode instead of 8-bit ASCII code.
8. Java is case sensitive.
9. Files in Java take the .java extension.
10. A declared Java class may be compiled by JDK (Java Development Kit) or by BlueJ.
11. For compiling by JDK, a class must contain a main ( ) method, from where execution begins.
12. No main ( ) method is needed for compiling by BlueJ.
13. Java uses comment symbols in three ways:
// one-line comment symbol
/* multiple-line comment symbol */
/** documenting comment symbol */
14. A Block is known as a compound statement. It is a collection of statements enclosed within opening ({) and closing (}) braces.
15. Classes, methods, variables are given valid names, known as Identifiers, which must start with a letter or underscore or dollar ($) symbol, but not a digit. Keywords cannot be used alone. But may be used in combination with letter or sub-word.
16. Java keywords are reserved words for attracting special attention by compiler. These words cannot be used as Identifiers.
17. There are eight Primitive data types:
(a) Six Numeric: byte, short, int, long (4 Integer Types) and float, double (2 Float Types).
(b) Two Non-numeric: boolean (true/false), char (enclosed with single quotes ' ', e.g. 'A').
18. A string is a class and not a data type.
19. Reference Data Types: Classes and arrays are user defined Data Types.
20. In order of precedence, Java Separators are (i) [ ], (ii) ( ), (iii) ; , (iv) ,
(i) Arithmetic Operators:
+ (addition), - (subtraction), * (multiplication), / (division), % (modulus operator, e.g. 16 % 7 returns the remainder 2 after dividing 16 by 7).
(ii) Assignment Operators:
| Operator | Example | Meaning |
|---|---|---|
| = | x = 5 | Assigns the variable x a value of 5 |
| += | x += 5 | Increases x by 5, i.e. x = x + 5 |
| -= | x -= 5 | Decreases x by 5, i.e. x = x - 5 |
| *= | x *= 5 | Multiplies the value of x by 5, i.e. x = x * 5 |
| /= | x /= 5 | Divides the value of x by 5, i.e. x = x / 5 |
| %= | x %= 5 | Same as x = x % 5 |
(iii) Relational Operators: There are six relational operators which help in comparing numbers and characters but not strings. These are >, >=, <, <=, == (comparatively equal to) and != (not equal to).
Note: = is the assignment operator and == is the comparison for equality (logical) operator.
(iv) Increment and Decrement Operators:
++x is the prefix increment operator and x++ is the postfix increment operator. Both these operators mean x = x + 1.
--x is the prefix decrement operator and x-- is the postfix decrement operator. Both these stand for x = x - 1.
Note: Prefix operators act before the associated operation is executed. Postfix operators act after executing the associated action.
(v) Logical Operators: AND (&&) and OR (||)
(vi) Conditional Operator: condition ? Expression 1 : Expression 2 (if ... then ... else ...). If the condition is true, the value of Expression 1 is assumed; otherwise, the value of Expression 2 is accepted.
22. Conditional Structures:
(i) Linear or Sequence Structure
(ii) Branching or Selection Structure
23. Branching Statements:
(i) if is the single branching statement
(ii) if ... else is a two-way branching statement
(iii) switch and break combine to constitute a multiple branching structure.
24. A loop is a process of executing the same action or a set of actions several times, till a preset condition is fulfilled.
25. do ... while is an Exit-control loop in which the condition is tested at the exit point. The block of actions is executed at least once.
26. (i) while and (ii) for loops are Entry-control loops. The condition is tested at the Entry point. If the test expression is not satisfied, the block of action is not executed even once.
27. A package is a collection of classes. The import operator enables us to include a package in a program.
28. print ( ) and println ( ) are methods by which the user can get specific string printed on the screen. The latter terminates the line printed and takes a line feed action automatically. The former continues printing on the same line.
29. Type casting is the process of changing one type of variable to another, e.g. double to int.
30. Special features of object Oriented Programming Language (e.g. Java):
(i) Data hiding, (ii) Inheritance, (iii) Polymorphism, (iv) Overloading.
31. Scanner class provides another type of input option.
32. What are Syntax errors? How are such errors occurred in Java?
Ans. Violation of grammatical rules.
Common Syntax errors in Java:
(i) Wrong use of constant and variables.
(ii) Wrongly spelt keywords.
(iii) Wrong punctuation.
(iv) Missing braces or semicolon.
(v) Wrong use of for, while, do ... while, if ... else, etc.
33. Mention three common Run-Time errors.
Ans. (i) Arithmetic error, e.g. finding \( \sqrt{-2} \)
(ii) Dividing a number by zero
(iii) Array index out of bounds.
Questions with Answers
Question 1. Mention two different styles of expressing a comment in a program.
Answer:
// A single-line comment and /* A multiple-line comment */.
Question 2. Differentiate between operator and expression.
Answer:
An operator represents some specific action on one or more operands to obtain a result, e.g. + or * or % or ++, --, &&, etc. An expression is a combination of operands and operators, yielding a resultant value.
Answer:
It is a block of statements enclosed within curly brackets { }.
Example:
int k = 1;
while (k < 10)
{ k++;
System.out.println(5 * k);
}
Question 4. If \( m = 5 \) and \( n = 2 \), find out the values of m and n after executing (a) and (b):
(a) m -= n;
(b) n = m + m / n;
Answer:
(a) m = 5 - 2 = 3, n = 2
(b) m = 3, n = 3 + 3/2 = 4 (since int 3/2 = 1)
Question 5. What will be the output of the following if x = 5 initially?
(a) 5 * ++x ; (b) 5 * x++
Answer:
(a) 5 * ++x = 5 * (5 + 1) = 30
(b) 5 * x++ = 5 * 5 = 25 (now x = 6)
Question 6. State the two kinds of data types.
Answer:
Primitive and Reference.
Question 7. Define a variable.
Answer:
A variable is a memory location identified by a definite name. This location can hold a particular type of data value.
int a = 0, b = 30, c = 40;
a = --b + c++ + b;
System.out.println("a=" + a);Answer:
a = --b + c++ + b = 29 + 40 + 29
Output: a=98
Question 9. Write corresponding expressions for the following mathematical operations:
(a) \( a^2 + b^2 \)
(b) \( z = x^3 + y^3 - \frac{xy}{2} \)
Answer:
(a) Math.pow(a, 2) + Math.pow(b, 2)
(b) z = Math.pow(x, 3) + Math.pow(y, 3) - x * y / 2
Question 10. Differentiate between equals ( ) and compareTo ( ).
Answer:
equals ( ) returns a boolean value after checking only equality.
compareTo ( ) returns an integer after checking equality and other kind of relations.
Question 11. Evaluate the following expressions, if the values of the variables are a = 2, b = 3 and c = 9:
(a) a - (b++) * (--c)
(b) a * (++b) % c
Answer:
(a) 2 - 3 * 8 = -22
(b) 2 * 4 % 9 = 8 % 9 = 8
int val, sum, n = 550; sum = n + val > 1750 ? 400 : 200; System.out.println(sum);
Answer:
(a) 550 + 500 = 1050, which is not greater than 1750, so the output is 200
(b) 550 + 1600 = 2150, which is greater than 1750, so the output is 400
Question 13. Write an equivalent Java syntax for the following expression:
\[ a = \frac{0.05 - 2y^3}{x - y} \]
Answer:
a = (0.05 - 2 * Math.pow(y, 3)) / (x - y);
Question 14. Explain the term type casting.
Answer:
Explicit conversion of one data type into another.
Question 15. Assign the value of pie (i.e. 3.142) to a variable with requisite data type.
Answer:
double pie = 3.142;
Question 16. State the difference between = and ==.
Answer:
= is an assignment operator, which assigns a value to a variable.
== is a relational operator. This is used for checking equality or not of two items.
if (income <= 10000)
tax = 0;
else
tax = 12;Answer:
tax = income <= 10000 ? 0 : 12;
Question 18. State the difference between token and identifier.
Answer:
The smallest individual unit in a program, such as keyword, identifier, literal, punctuator, operator is called a Token.
Whereas an Identifier is a name given to a variable or class or object or array or a method.
Question 19. If a = 5, b = 9, calculate the value of a += a++ - ++b + a.
Answer:
a = 5 + (5 - 10 + 6) = 6
char c = 'A'; short m = 26; int n = c + m; System.out.println(n);
Answer:
int n = c + m means int n = int c + int m (by type conversion)
⇒ int n = Unicode value of A + int m (after type promotion of short m)
= 65 + 26
= 91
Question 21. Write a Java expression for \( \frac{(a+b)^n}{\sqrt{3}+b} \).
Answer:
Math.pow((a + b), n) / (Math.sqrt(3) + b)
Question 22. State the difference between a boolean literal and a character literal.
Answer:
A boolean literal can be either true or false as its value.
A character literal is composed of a single character enclosed within a pair of single quotes, e.g. 'N'.
Question 23. What is the use and the syntax of the ternary operator?
Answer:
A ternary operator checks a condition and returns a value according as the condition is true or false.
Syntax: Condition ? True value : False value.
Question 24. State one similarity and one difference between 'while' and 'for' loop.
Answer:
Similarity: Both are iterating statements.
Difference: The number of iterations or rounds is known in 'for' loop but unknown in 'while' loop.
Question 25. Write the function prototype of the function "sum" that takes an integer variable (x) as its argument and returns a value of float data type.
Answer:
float sum(int x)
x = 1; y = 1;
if (n > 0)
{
x = x + 1;
y = y - 1;
}What will be the values of x and y, if n assumes a value (i) 1 (ii) 0?Answer:
(i) x = 2, y = 0
(ii) x = 1, y = 1
Question 27. When there are multiple definitions with the same function name, what makes them different from each other?
Answer:
Overloaded functions are differentiated by their signatures, i.e. the number of parameters and their types.
switch (opn)
{
case 'a': System.out.println("Platform Independent");
break;
case 'b': System.out.println("Object Oriented");
case 'c': System.out.println("Robust and Secure");
break;
default: System.out.println("Wrong Input");
}Answer:
(i) Object Oriented
Robust and Secure
(ii) Wrong Input
(iii) Platform Independent
class sum2 {
public void main []; {
x = 2
y = 2.2;
float Z = x * y;
System.out.printline ("value of x++ =" (x++))
System.out.printline ("value of Z =" + Z)
}
}Answer:
class sum2 {
public static void main(String args[]) {
int x = 2;
float y = 2.2f;
float Z = x * y;
System.out.println("value of x++ =" + (x++));
System.out.println("value of Z =" + Z);
}
}
Answer:
<class name> <Object Name> = new <class name>( );
For a string class:
String objt = new String();
Question 31. Define the term Byte code.
Answer:
It is a platform independent Java instruction for the Java processor chip called JVM.
Question 32. How is implicit conversion different from explicit conversion?
Answer:
Implicit conversion is the automatic conversion of a smaller datatype to a bigger datatype.
Explicit conversion is the conversion of a bigger datatype to a smaller datatype using the typecast operation ( ).
Question 33. Write a Java expression for \( \sqrt{2as + u^2} \).
Answer:
Math.sqrt(2 * a * s + Math.pow(u, 2));
Question 34. Name the type of error (syntax, runtime or logical error) in each case given below:
(i) Division by a variable that contains a value of zero.
(ii) Multiplication operator used when the operation should be division.
(iii) Missing semicolon.
Answer:
(i) run-time error
(ii) logical error
(iii) syntax error
Free study material for Computer Application
Study Material and Revision Notes for Class 10 Computer Applications Chapter 01 Elements of Java
About Chapter 01 Elements of Java Revision Notes
Explore reliable chapter overviews for Chapter 01 Elements of Java tailored for Class 10 learners. Use these structured points to grasp difficult themes and ensure solid preparation for upcoming assessments.
How to Use These Revision Notes
Cross-reference your comprehension with comprehensive NCERT solutions for Class 10 to ensure absolute clarity across all sub-topics in this chapter.
Enhance Practice with MCQs and Worksheets
Follow up your revision by attempting the interactive online Computer Applications MCQ test and practice worksheets for this chapter to verify your mastery. All platform resources are free to access.
FAQs
You can download the teacher prepared revision notes for ICSE Class 10 Computer Applications Chapter 01 Elements of Java Notes and Important Questions with Answers from StudiesToday.com. These notes are designed as per 2026-27 academic session to help Class 10 students get the best study material for Computer Applications.
Yes, our ICSE Class 10 Computer Applications Chapter 01 Elements of Java Notes and Important Questions with Answers include 50% competency-based questions with focus on core logic, keyword definitions, and the practical application of Computer Applications principles which is important for getting more marks in 2027 ICSE exams.
Yes, our ICSE Class 10 Computer Applications Chapter 01 Elements of Java Notes and Important Questions with Answers provide a detailed, topic wise breakdown of the chapter. Fundamental definitions, complex numerical formulas and all topics of ICSE syllabus in Class 10 is covered.
These notes for Computer Applications are organized into bullet points and easy-to-read charts. By using ICSE Class 10 Computer Applications Chapter 01 Elements of Java Notes and Important Questions with Answers, Class 10 students fast revise formulas, key definitions before the exams.
No, all study resources on StudiesToday, including ICSE Class 10 Computer Applications Chapter 01 Elements of Java Notes and Important Questions with Answers, are available for immediate free download. Class 10 Computer Applications study material is available in PDF and can be downloaded on mobile.