Class 10 ICSE - Java
Class 10th Java aims to empower students by enabling them to build their own applications introducing some effective tools to enable them to enhance their knowledge, broaden horizons, foster creativity, improve the quality of work and increase efficiency.
It also develops logical and analytical thinking so that they can easily solve interactive programs. Students learn fundamental concepts of computing using object oriented approach in one computer language with a clear idea of ethical issues involved in the field of computing
Class 10th java topics includes revision of class 9th, constructors, user-defined methods, objects and classes, library classes , etc.
Strings
Introduction
- String is an object that represents sequence of character values(alphabets,numbers,special characterises)
- Strings are immutable(i.e,unchangeable)
- They are always written in double quotes
Intialization :
Explicit
String s="Hello";String str="Hello_world123"
//s and str are names of the strings
Implicit
Scanner sc=new Scanner(System.in);
String s=sc.next();String str=sc.nextLine();
// next takes only a word as an input while nextline takes a sentence
//s and str are names of the strings
String s=sc.next();String str=sc.nextLine();
// next takes only a word as an input while nextline takes a sentence