Total 20 Assignments
static methods
Program based on pure, static, non
>Based on method overloading
ºBased on Object Oriented Concept
Programs and outputs based on constructor overloading
lath class
Output based on methods from String, Character, Wrapper cl
>Programs based on String and character extract and manipulating t
>Array based : search techniques, input in aray, accessing array element
Sorting in array, double dimensional array programs
(Note : No viva, project. Only assignments)
Computing and Ethics only for std 9
no switch case based programs
Nested while, do while and while inside for
No input with Buffered Reader
Pattern printing of triangle
* No programs based on Call by reference
Word extraction from sentence programs
Matrices addition and multiplication
String Bufer
5.Library Classes
Autoboxing and Unboxing(Definition and Example)
Autoboxing: Converting variable of primitive data type into Wrapper class
object
e.g. int n=50; Wrapper Classes
Integer ob=new integer (n); Boolean
boolean
System.out.print(n+ ""+ ob); char bOLng Character
Unboxing Converting Wrapper class object into byte Byte
short Short
variable of primitive datàtype. Int Integer
e.g. Intger obl=new Integer(25); long Unboring Long
float Float
int num=obl; double Double
System.out.print(num+ ""+ obl):
6. Encapsulation
Access specifiers - public , private , protected
7Visibility rules for access modifiers
3Scope of variables
Types of variables :
’class variables
’instance variables
>local variables ,global variables
>argument variables
Wrapper Classes
boolean Boolean
char Autrng Character
byte Byte
short Short
int Integer
long Unboring Long
float Float
double Double
5.Library Classes
Methods to be covered from Wrapper class:
parse()
+integer.parselnt( String s) eg int n= Integer.parselnt("2345");
Long.parseLong|String s)
Float.parseFloat( String s)
*Double.parseDouble( String s)
valueOf()
*integervalueOf( String s) eg Integer ob= IntegenvalueOf(2345"):
*Long. valueOf(String s)
9Float. valueOf( Strings)
Double. valueOf( String s)
5.Library Classes - Character class methods
*boolean isDigit( char ch) boolean b=Character.isDigit('6);
4oboolean isletter char ch) boolean b=Character.isLetter('A');
boolean isletterOrDigit( char ch) > boolean b=Character.isLetterOrDigit('6");
boolean isLowerCase( char ch)> boolean
b=Character.isLowerCase('A');
oboolean isUpperCase( char ch)’ boolean b =Character.isUpp
('A);
oboolean isWhitespace( char ch)’ boolean b
=Character.isWhitespace('A');
char toLowerCase(char ch) char ch=Character.toLowerCase('A');
char toUpperCase(char ch) char ch=Character.toUpperCase('A');
4.Constructor
1 Definition of constructor, characteristics
|2. Types of constructors - default and parameterized
3. Use of constructor ( in OOP's programming)
4. Constructor overloading
5 Difference between constructor and method
Types of method calling
Call by value / Call by reference I
pass by value pass by reference
> Primitive data type used > Non Primitive data e used
> Operation on copied values Operation on originai values
Original value does not, change Original value changes
Pure methods > Impure methods
All programs with call by value Only definition with an example
Variations in loop
Finite loop
for( int i=1;i<10;j++)
47 (it+)
Infinite / delay loop Empty loop
for:) for int intjei10je)
`ystem.out,print("@"; Variations
in loop
int in1;
for loop with; for ie10; )
int i;
forl i=1;i<10;i++);
Sample program list for User defined Methods
Programs using the concept of pure functions
aPrograms depicting the concept of static, non static , void and
with return statement
aProgram based on overloaded methods
Programs involving data members, member methods invoking
the methods with respect to the object created.( ect Oriented
Programming )
Programs based on different types of constructors
(0OP's Program)
Operator Precedence
Operators Precedence
1.+, - (unary operaton) frst (highest
-(assigrment operator) last Oowestl
data types in java
Duta Typos
Non-Prinitive
Fixed memory size
Primitive Vary memory size
Types Types
Numeria Non-Numeric Classes Arraysnterfmoes
byte 1 ahar 2 byte
ahort boolean 1byte
Int
Iong
fioat
doublo
Fig: Types of Data Type
3. Values and data types
Java character set / Unicode character set
Tokens
Numbers
0-9
Literals
Alphabets Special
A-Z characters
Character
set
Keywords Java Operators
Operators Spaces Tokens
Literals and its types
Escape sequence
456
Floingpoit 34.56
In
Literals
in Java Character 'a',3* It
Sting "abe","345","x*y"
true I false
Boolean
concept
1. Introduction to O0P's and stand alone
*Types of Java programs - applet
appllcation
Java
*Java compilation process : source code,object code,
byte code, JVM
* Java features : simple , robust ,secured , platform
independent, object oriented, case sensitive , compiled &
interpreted
Ascii codes Types of nments
A -Z’ 65 - 90 II single line
a -z 97-122 .Imultiline
0-9 48 -57
Space>32
1. Introduction to OOP's concept
* Difference between 0OP's and POP's
00P POP Object Procedure
Object Oriented Procedural Oriented
Programning
OOP follows Bottom-Up
Programming
"POP tollows Top-Down
Oriented Oriented
opproach opprooch.
- inhentance is supported. Inheritance is not
ported
A program is divided to A program is doided into
objects and their funtions and they
intergctions intergcts.
Access cantrol is - No occess modifiers are
supported via access supported.
modifiers. dxunent, pen, cient wrting
Encopsulation is used to .No dato hiding present.
hede dafa.
ExompleC*, Javo Exomple:C, Pascal