If we want to carry liquid in other city or any where then we must keep it CAN which can can carry it.
Here the liquid is our object of any class and we are we must keep it in file to carry in nay other location then that class must implements the serializable interface which is the markable inteface.
suppose we want to keep some fields not serialize then declare those fields as transient.
It means that field is not available while reading the serialized object from file.
Mangesh S. S. Waghaye,
Nagpur.
Tuesday, November 6, 2007
Externalization
If we want to write the readObject and writeObject as per our requirment we must implement our class by interface Externalizable .
for example if you want to sysout in readObject or in writeObject or any other changes then this is done by Externalizable interface which has two methods ,
1)readExternal(ObjectInput input).
2)writeExternal(ObjectOutput out).
Mangesh S.S.Wagahye,
Nagpur.
for example if you want to sysout in readObject or in writeObject or any other changes then this is done by Externalizable interface which has two methods ,
1)readExternal(ObjectInput input).
2)writeExternal(ObjectOutput out).
Mangesh S.S.Wagahye,
Nagpur.
Wednesday, August 29, 2007
log4j introduction...
log4j is a logging utility written in Java.It can be used as a debugging utility.log4j is one of widely used Java logging frameworks.log4j allows you to log to a file, console, remote server etc.
log4j has six logging levels from highest to lowest:
1. FATAL
2. ERROR
3. WARN
4. INFO
5. DEBUG
6. TRACE
You can configure log4j either using properties file or XML file.log4j configuration file contains
3 main components:
1. Loggers
2. Appenders
3. Layouts
The advantage of logging using log4j is that logging can be turned on or off without actually modifying the application that uses log4j.The application can be allowed to run with logging turned off until there's problem and later if there is any problem the user can turned on logging to see where is the problem.
Regards,
Tausif Khan, Nagpur
log4j has six logging levels from highest to lowest:
1. FATAL
2. ERROR
3. WARN
4. INFO
5. DEBUG
6. TRACE
You can configure log4j either using properties file or XML file.log4j configuration file contains
3 main components:
1. Loggers
2. Appenders
3. Layouts
The advantage of logging using log4j is that logging can be turned on or off without actually modifying the application that uses log4j.The application can be allowed to run with logging turned off until there's problem and later if there is any problem the user can turned on logging to see where is the problem.
Regards,
Tausif Khan, Nagpur
Thursday, August 16, 2007
Need a Dose again????????????
He guys,
It was really depressing not see a single blog since a week or more.Ya, there was some inconsistency in the class last week but atleast we must keep blogging regularly.I felt so and hence i m blogging though i dont have any valuable contents.But i will try to gather something useful and i promise I will be Back, very soon!!!
Till then, take care and Keep Blogging, else we might have one more class of heavy doses from Tushar Sir!!!
Take care,
Regards,
S A Vakeel
It was really depressing not see a single blog since a week or more.Ya, there was some inconsistency in the class last week but atleast we must keep blogging regularly.I felt so and hence i m blogging though i dont have any valuable contents.But i will try to gather something useful and i promise I will be Back, very soon!!!
Till then, take care and Keep Blogging, else we might have one more class of heavy doses from Tushar Sir!!!
Take care,
Regards,
S A Vakeel
Monday, August 6, 2007
Inner classes
Hi everyone!!!
I really mised out the weekend!It was like i had not attended the class from a month.Neways, Mangesh helped me a lot by letting me know what had been taught on Friday.Thanx Mangesh!!!
Here, i m irting about inner classes.Hope it ould help u ppl in ome way!!
Inner classes are a feature added to Java with the release of JDK 1.1. Inner classes, sometimes also called as Nested classes, can give your programs additional carity and make them more concise.
Basically, an inner class is same as any other class except that it is declared inside an opening and closing braces of some construct that may be a class or a method.Following is an example of inner classes:
public class OuterOne{
private int x;
public class InnerOne{
private int y;
public innerMethod(){
System.out.println("Y = " + y);
}
}
public void outerMethod(){
System.out.println(" X = " + x);
}
}
When an inner class is declared like this, the enclosing class name becomes part of the fully qualified name of the inner class.In this case, the full names of the two classes are OuterOne and OuterOne.Innerone. itis possible since an inner class belongs to its enclosing class similar to the way a class belongs to a package.
Following example shows an extended view at the inner classes where the inner class uses the members of the enclosing class.
public class OuterOne{
private int x;
public class InnerOne{
private int y;
public innerMethod(){
System.out.println("Enclosing X = " + y);
System.out.println("Y = " + y);
}
}
public void outerMethod(){
System.out.println(" X = " + x);
}
}
Sometimes you might to create an instance of an inner class from a static method, or in some situation where ther is no this object available. The situtaion arises in a main() method.You can ahieve this by using new operator as :
public sytatic void main(String[] args){
OuterOne.InnerOne inner = new OuterOne().InnerOne();
inner.innerMethod();
}
We can also define classes inside Methods.The first point to be noted here is that anything declared inside a method is not a member of the class, but is local to the method.The imediate consequence is that classes declared in methods are private to the method and cannot be marked with any access modifier, neither can they be marked as static.
The second and most important point to be noted here is that the classes defined inside a method can access variables of the enclosing methods if and only if those variables are defined as FINAL.
The reason is that: An onject declared inside a mehod is likely to outlive the method invocation.Since the local variables and method arguments are conventionally destroyed when their method exits,these variables will be invalid for access by inner class methods after the enclosing method exits. By allowing the methods to access only final variables, it is possible to maintain a copy of the variables with the object itself, therby extending their lifetime.
Anonymous classes: Some classes that you define inside a method do not need a name , such classes are called as Anonymous classes.
Anonymous classes are mainly used to extend some class or implement an interface.This restricts you to extend more than one class and implement more than one interface.
Since there is no name given to the anonymous classes, we cannot use the new keyword in the usual way.The definition, contsruction and instantiation of an anonymous class all occur in the same place.This is explained in the next example:
public void aMethod(){
theButton.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent e){
System.out.pritnln("The action has occurred");
}
}
);
}
This example may look somewhat weird to you since we have not learnt ActionListener yet.So lets check this example for our IStatusPrinter interface where we will use the Flexigame object to set the IStatusPrinter reference:
Flexigame fgame = new Flexigame("Cricket");
fgame.setStatusPrinter(
new IStatusPrinter(){
public void start(){
System.out.println("Starting the Game thgrough Anonymous class");
}
public void stop(){
System.out.println("Stopping the Game thgrough Anonymous class");
}
});
Thats all for now, guys!!!
See u soon with more stuff!!!
Take care,
Regards,
S A Vakeel
I really mised out the weekend!It was like i had not attended the class from a month.Neways, Mangesh helped me a lot by letting me know what had been taught on Friday.Thanx Mangesh!!!
Here, i m irting about inner classes.Hope it ould help u ppl in ome way!!
Inner classes are a feature added to Java with the release of JDK 1.1. Inner classes, sometimes also called as Nested classes, can give your programs additional carity and make them more concise.
Basically, an inner class is same as any other class except that it is declared inside an opening and closing braces of some construct that may be a class or a method.Following is an example of inner classes:
public class OuterOne{
private int x;
public class InnerOne{
private int y;
public innerMethod(){
System.out.println("Y = " + y);
}
}
public void outerMethod(){
System.out.println(" X = " + x);
}
}
When an inner class is declared like this, the enclosing class name becomes part of the fully qualified name of the inner class.In this case, the full names of the two classes are OuterOne and OuterOne.Innerone. itis possible since an inner class belongs to its enclosing class similar to the way a class belongs to a package.
Following example shows an extended view at the inner classes where the inner class uses the members of the enclosing class.
public class OuterOne{
private int x;
public class InnerOne{
private int y;
public innerMethod(){
System.out.println("Enclosing X = " + y);
System.out.println("Y = " + y);
}
}
public void outerMethod(){
System.out.println(" X = " + x);
}
}
Sometimes you might to create an instance of an inner class from a static method, or in some situation where ther is no this object available. The situtaion arises in a main() method.You can ahieve this by using new operator as :
public sytatic void main(String[] args){
OuterOne.InnerOne inner = new OuterOne().InnerOne();
inner.innerMethod();
}
We can also define classes inside Methods.The first point to be noted here is that anything declared inside a method is not a member of the class, but is local to the method.The imediate consequence is that classes declared in methods are private to the method and cannot be marked with any access modifier, neither can they be marked as static.
The second and most important point to be noted here is that the classes defined inside a method can access variables of the enclosing methods if and only if those variables are defined as FINAL.
The reason is that: An onject declared inside a mehod is likely to outlive the method invocation.Since the local variables and method arguments are conventionally destroyed when their method exits,these variables will be invalid for access by inner class methods after the enclosing method exits. By allowing the methods to access only final variables, it is possible to maintain a copy of the variables with the object itself, therby extending their lifetime.
Anonymous classes: Some classes that you define inside a method do not need a name , such classes are called as Anonymous classes.
Anonymous classes are mainly used to extend some class or implement an interface.This restricts you to extend more than one class and implement more than one interface.
Since there is no name given to the anonymous classes, we cannot use the new keyword in the usual way.The definition, contsruction and instantiation of an anonymous class all occur in the same place.This is explained in the next example:
public void aMethod(){
theButton.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent e){
System.out.pritnln("The action has occurred");
}
}
);
}
This example may look somewhat weird to you since we have not learnt ActionListener yet.So lets check this example for our IStatusPrinter interface where we will use the Flexigame object to set the IStatusPrinter reference:
Flexigame fgame = new Flexigame("Cricket");
fgame.setStatusPrinter(
new IStatusPrinter(){
public void start(){
System.out.println("Starting the Game thgrough Anonymous class");
}
public void stop(){
System.out.println("Stopping the Game thgrough Anonymous class");
}
});
Thats all for now, guys!!!
See u soon with more stuff!!!
Take care,
Regards,
S A Vakeel
Thursday, August 2, 2007
Object Property
Variables of the class are related to the object of the that class irrespective whether those are private,public or protected. This is because we can make use of the variables of other class in our class by using the . .
Similar to this we can access non static methods using the object of that respective class, thus these are also related to objec property of class.
We Know that static inner class not related to the object property of enclosing class.Thus we can not have access inside static inner classs of the nonstatic methods and non final variables of the enclosing class.
Similar to this we can access non static methods using the object of that respective class, thus these are also related to objec property of class.
We Know that static inner class not related to the object property of enclosing class.Thus we can not have access inside static inner classs of the nonstatic methods and non final variables of the enclosing class.
by,
Mangesh S.S.Waghaye.
Mangesh S.S.Waghaye.
Wednesday, August 1, 2007
Abstract Classes Vs Interfaces
If we are developing some application in which an entity can have more than one implementation, then it is a good practise to use interfaces and implement classes using interfaces.
If some of the functionality of an entity is already known and other methods can have different
implementations, then creating an abstract class is better.
All the methods declared in Interfaces are implicitly abstract. An Abstract class can have
one or more abstract methods as well as concrete methods having implementations.
Interfaces can't have methods that have implementations.
You can implement any number of classes but you can't extends more than class at a time.
We cannot create object of Interface but we can create object of Abstract class.
These are few basic differences between Abstract Classes and Interfaces.
Regards,
Tausif Khan, Nagpur
If some of the functionality of an entity is already known and other methods can have different
implementations, then creating an abstract class is better.
All the methods declared in Interfaces are implicitly abstract. An Abstract class can have
one or more abstract methods as well as concrete methods having implementations.
Interfaces can't have methods that have implementations.
You can implement any number of classes but you can't extends more than class at a time.
We cannot create object of Interface but we can create object of Abstract class.
These are few basic differences between Abstract Classes and Interfaces.
Regards,
Tausif Khan, Nagpur
Inner Classes
Inner Classes :-
the class inside onother class is called inner class. but their are some limitations about inner classes......
1. they should be static always...
2. they can be private, but only used by their outer class( Enclosing class )...
3. they can be public also.....
4. they can implement interfaces....
5. they can not extend.....
their are 4 types of inner classes..
1. static inner class.
2. local inner class.
3. Anonomus inner class :-
this is some wt difficult for me to understand.... but (sobiya mam and vakeel ne firse samjhaya then ab jake thoda bahot samajha hai....) still i m trying to get understand it more clearly.........
Ragards,
Rachana Kulkarni.
the class inside onother class is called inner class. but their are some limitations about inner classes......
1. they should be static always...
2. they can be private, but only used by their outer class( Enclosing class )...
3. they can be public also.....
4. they can implement interfaces....
5. they can not extend.....
their are 4 types of inner classes..
1. static inner class.
2. local inner class.
3. Anonomus inner class :-
this is some wt difficult for me to understand.... but (sobiya mam and vakeel ne firse samjhaya then ab jake thoda bahot samajha hai....) still i m trying to get understand it more clearly.........
Ragards,
Rachana Kulkarni.
MUST DO IT!!!
Hey everyone!
Here are ome rules that i think we must follow while submitting the assignments (Im telling this coz i myself have done lots of mistakes while submitting the assignments)
First of all, the library files (.jar) that we are using in the main project need not to be sent explicitly.It gets encapsulated with the main project which is using it in the 'lib' folder.
While making the jar file of the Main project, take care of setting the Main class of the jar in the tab "Manifest specification" which will help you executing th main file from the jar itself.
And one important thing, while using the jar file as a library in the main project, we will have to use the
"IMPORT" statements.
Thats all for now,
take care
regards,
S A Vakeel
Here are ome rules that i think we must follow while submitting the assignments (Im telling this coz i myself have done lots of mistakes while submitting the assignments)
First of all, the library files (.jar) that we are using in the main project need not to be sent explicitly.It gets encapsulated with the main project which is using it in the 'lib' folder.
While making the jar file of the Main project, take care of setting the Main class of the jar in the tab "Manifest specification" which will help you executing th main file from the jar itself.
And one important thing, while using the jar file as a library in the main project, we will have to use the
"IMPORT" statements.
Thats all for now,
take care
regards,
S A Vakeel
Sunday, July 29, 2007
till now we studied two IDE's BlueJ and Netbeans.....now its the new adventure to study Eclipse...........
Eclipse have every thing inbuild..we just have to select the things we wants.........
If we want to Implement interface just click Add interface on that class......it overcome lots of typing effords.....wtver Interface containts all are get automatically comes in that selected class........(its nice na....)
and onemore thing....wheenver we wants to give our code to the client then just make .jar file of our project so that it get avail to the client.......
it's very easy to create .jar file.......very simple you just have to follow few steps.......(that i will tell u next time........ok).......
and always use ctr+s to save ur code...and
use ctr+shift+f for clean all ur extra blank spaces and enters so that ur code get look very clean and clear...........
Regards......
Rachana kulkarni.
Eclipse have every thing inbuild..we just have to select the things we wants.........
If we want to Implement interface just click Add interface on that class......it overcome lots of typing effords.....wtver Interface containts all are get automatically comes in that selected class........(its nice na....)
and onemore thing....wheenver we wants to give our code to the client then just make .jar file of our project so that it get avail to the client.......
it's very easy to create .jar file.......very simple you just have to follow few steps.......(that i will tell u next time........ok).......
and always use ctr+s to save ur code...and
use ctr+shift+f for clean all ur extra blank spaces and enters so that ur code get look very clean and clear...........
Regards......
Rachana kulkarni.
Friday, July 27, 2007
Sun Eclipsed!!!!!!!
Hi everyone,
Nice to see some new posts.You know something, changes als makes me happy.New posts, new friends, new ideas and new IDE.Ya, eclipse has changed my perception about the IDEs. Previously, i had used NetBeans and didnt have a good experience due to its do-it-all stuff. But eclipse gives you a customised view,just what you need.Hope it will be good experience working on a eclipse.
Hey, did u ppl observe smthing? eclipse is an IDE for Sun Java. so can we call it Sun Eclipse!!!!
Just kidding!!
And here is some food for thought (reply for Rachna)
"Confidence never comes if we know all the answers, it comes when we are ready to solve all the questions."
Thats all for now,
Take care,
Bye
S A Vakeel
Nice to see some new posts.You know something, changes als makes me happy.New posts, new friends, new ideas and new IDE.Ya, eclipse has changed my perception about the IDEs. Previously, i had used NetBeans and didnt have a good experience due to its do-it-all stuff. But eclipse gives you a customised view,just what you need.Hope it will be good experience working on a eclipse.
Hey, did u ppl observe smthing? eclipse is an IDE for Sun Java. so can we call it Sun Eclipse!!!!
Just kidding!!
And here is some food for thought (reply for Rachna)
"Confidence never comes if we know all the answers, it comes when we are ready to solve all the questions."
Thats all for now,
Take care,
Bye
S A Vakeel
Thursday, July 26, 2007
Introduction to Eclipse
Every thing must be predecided to start working with Eclipse.
At least you must have the complete structure of the one project i.e.
which class extends other and which implements interface in a workspace.
Workspace is the Metadata directory.The directory get created when you create the workspace.
The intresting thing in eclipse is that the name of the interface that must be reverse of the site name.
for example, if the site name is abc.com then the interface name is com.abc..
shift+clt,space is one of the amazing thing that I noticed it is used as the shortcut Key for dynamic envirnment.
Suppose we type Str and press shift+clt,space it will show you the all the class names that are starts with Str and we have to choose any one of it as per requirment.
Mangesh S.S.Waghaye ,Nagpur
At least you must have the complete structure of the one project i.e.
which class extends other and which implements interface in a workspace.
Workspace is the Metadata directory.The directory get created when you create the workspace.
The intresting thing in eclipse is that the name of the interface that must be reverse of the site name.
for example, if the site name is abc.com then the interface name is com.abc.
shift+clt,space is one of the amazing thing that I noticed it is used as the shortcut Key for dynamic envirnment.
Suppose we type Str and press shift+clt,space it will show you the all the class names that are starts with Str and we have to choose any one of it as per requirment.
Mangesh S.S.Waghaye ,Nagpur
Eclipse !!!
hello frndz...
Till now in our JPDC class we have been introduced to two IDE's NetBeans and BlueJ.
NetBeans is too professional and it provides little help to begginers like us. So we shifted to another IDE BlueJ. I liked BlueJ very much and also Jeliot. Both these tools provide a very simple and graphical means to understand what's going inside our program. So they are simply like toy given to children for playing. Having fun along with learning!! But from yesterday, we have been introduced to another professional IDE
ECLIPSE. This is an open source and it has got very strong features.
I really found this IDE comfortable as well as challenging. It provides so much functionality and obviously it will take lot much amount of time and efforts to get aquainted with it.
This much only for today! Will write more on this if cud get more time!
Takecare
Regards
sobiya
Till now in our JPDC class we have been introduced to two IDE's NetBeans and BlueJ.
NetBeans is too professional and it provides little help to begginers like us. So we shifted to another IDE BlueJ. I liked BlueJ very much and also Jeliot. Both these tools provide a very simple and graphical means to understand what's going inside our program. So they are simply like toy given to children for playing. Having fun along with learning!! But from yesterday, we have been introduced to another professional IDE
ECLIPSE. This is an open source and it has got very strong features.
I really found this IDE comfortable as well as challenging. It provides so much functionality and obviously it will take lot much amount of time and efforts to get aquainted with it.
This much only for today! Will write more on this if cud get more time!
Takecare
Regards
sobiya
Wednesday, July 25, 2007
About my Java class.
Hello,
I want to write something about my Java class. Though it is a java class we learn much more things other than java. e.g.: how to write Java Docs, how to write JUnit test cases, how to optimize our code etc. From this class we don’t want to learn only java but it’s a medium to learn a technology.
Regards,
Mukta
I want to write something about my Java class. Though it is a java class we learn much more things other than java. e.g.: how to write Java Docs, how to write JUnit test cases, how to optimize our code etc. From this class we don’t want to learn only java but it’s a medium to learn a technology.
Regards,
Mukta
Enumeration
The enum is the special arrangement provided in java to arrange the fields in it(just as an
array). Enum is used when fields are constants and known in the run time.eg.days in a week,
directions ( EAST,WEST,NORTH, SOUTH).
As Enum is like arrays but it contains only the constants thus fields in the enum are always
in Uppercase.
Enum extends java.lang.enum.
Thus Enum are not extends any thing else because multiple inheritance is not used in java.
Mangesh S. S. Waghaye ,Nagpur.
array). Enum is used when fields are constants and known in the run time.eg.days in a week,
directions ( EAST,WEST,NORTH, SOUTH).
As Enum is like arrays but it contains only the constants thus fields in the enum are always
in Uppercase.
Enum extends java.lang.enum.
Thus Enum are not extends any thing else because multiple inheritance is not used in java.
Mangesh S. S. Waghaye ,Nagpur.
Tuesday, July 24, 2007
Just Technology............
hello...........
We can not define Technology....but still,,,,Technology teaches us how to deal with current progress.....so, JAVA is kind of Technology which shows how the world is begin to become progressive........
In our class their is a "Bridge" between teacher and student(i.e. Technology)....and to reach at the other side we have to study Technology........it is something like....
" It is good to have an end to Journey toward; but it is the Journey that matters, in the end. "
Specially Java teaches about.....
1. Object Oriented Programing
2. Key-words and constructor of java progr. lang.
3. Step's to create new java program techno. and much more.......but how to implement it this is all depend on us..........Technology shows the path but we have to walk on it to achive goal......
" We create our own success by learning what we need to learn and then by practicing it,,,,, we become proficient "
Regards,
Rachana Kulkarni
We can not define Technology....but still,,,,Technology teaches us how to deal with current progress.....so, JAVA is kind of Technology which shows how the world is begin to become progressive........
In our class their is a "Bridge" between teacher and student(i.e. Technology)....and to reach at the other side we have to study Technology........it is something like....
" It is good to have an end to Journey toward; but it is the Journey that matters, in the end. "
Specially Java teaches about.....
1. Object Oriented Programing
2. Key-words and constructor of java progr. lang.
3. Step's to create new java program techno. and much more.......but how to implement it this is all depend on us..........Technology shows the path but we have to walk on it to achive goal......
" We create our own success by learning what we need to learn and then by practicing it,,,,, we become proficient "
Regards,
Rachana Kulkarni
Abstract Classes...
Last week we have learned about Abstract Classes and Interfaces in our JPDC-2007 class.Here I am trying to write some features about Abstract Classes.
Abstract Classes are the classes which are declared abstract.It may or may not contain abstract methods. Abstract methods are methods which do not have method body.Any method can be made abstract by writing access specifier i.e public, private, protected or default, followed by keyword "abstract", followed by return type and method name which is followed by semicolon.It does not contain method body.
If a subclass extends the abstract class, it must contain the implementations for all the abstract methods declared in its parent class.If it does not implement any abstract method declared in its parent class, the subclass itself must be declared as abstract.
Another feature of Abstract class is it cannot be instantiated.It means we cannot create object of Abstract class.The reason why we cannot create object of Abstract class is Abstract class can have abstract methods. And Java does not allow us create object of any class which contains methods that does not have method body.
There may be situations where we have abstract class that does not contain any abstract methods. So question arises what is the use of such class.The answer is simple.We want that no user will be able to create object of our Abstract class directly.If he wants to use our abstract class he needs to extend our class and implement the abstract methods declared in parent class in its own way according to their requirement.
So that's just an introduction about Abstract classes.I am concluding this post with hope that this post might be helpful to anyone reading this blog.
Regards,
Tausif Khan, Nagpur
Abstract Classes are the classes which are declared abstract.It may or may not contain abstract methods. Abstract methods are methods which do not have method body.Any method can be made abstract by writing access specifier i.e public, private, protected or default, followed by keyword "abstract", followed by return type and method name which is followed by semicolon.It does not contain method body.
If a subclass extends the abstract class, it must contain the implementations for all the abstract methods declared in its parent class.If it does not implement any abstract method declared in its parent class, the subclass itself must be declared as abstract.
Another feature of Abstract class is it cannot be instantiated.It means we cannot create object of Abstract class.The reason why we cannot create object of Abstract class is Abstract class can have abstract methods. And Java does not allow us create object of any class which contains methods that does not have method body.
There may be situations where we have abstract class that does not contain any abstract methods. So question arises what is the use of such class.The answer is simple.We want that no user will be able to create object of our Abstract class directly.If he wants to use our abstract class he needs to extend our class and implement the abstract methods declared in parent class in its own way according to their requirement.
So that's just an introduction about Abstract classes.I am concluding this post with hope that this post might be helpful to anyone reading this blog.
Regards,
Tausif Khan, Nagpur
Monday, July 23, 2007
Hello Everyone,
Here's good e book on JUnit. http://www.oreilly.com/catalog/jextprockbk/chapter/ch04.pdf
This chapter on JUnit is from the book Java Extreme Programming Cookbook. The chapter on JUnit is available for free download. Have a look....
Regards-
Parag Agarkar
Here's good e book on JUnit. http://www.oreilly.com/catalog/jextprockbk/chapter/ch04.pdf
This chapter on JUnit is from the book Java Extreme Programming Cookbook. The chapter on JUnit is available for free download. Have a look....
Regards-
Parag Agarkar
Some contents for Unit Testing
Hi guys,
I found some tutorials about Unit Testing that might be usful for us.Please refer to thiese links:
http://forum.onestoptesting.com/forum_posts.asp?TID=677
http://www.solsticesoftware.com/UnitTesting.aspx?gclid=CJym3N_PvI0CFQmZbgod1xdqLw
Bye for now
Take care
S A Vakeel
I found some tutorials about Unit Testing that might be usful for us.Please refer to thiese links:
http://forum.onestoptesting.com/forum_posts.asp?TID=677
http://www.solsticesoftware.com/UnitTesting.aspx?gclid=CJym3N_PvI0CFQmZbgod1xdqLw
Bye for now
Take care
S A Vakeel
Put your HEAD FIRST!!!
Hi guys,
It has been a great xerience performing those assignments in the weekend.Though i had been also preparing for my College Seminar, which is usually a boring stuff, there was more fun this time, as i was accompanied by none other than Kathy and Bert.Ya, those guys behind the animated book "Head Fist Java" made my job more easier with their ready-to-draw-anything attitude.They have just made a drawingboard of the entire book and to be really frnk, its SUPERB!!! Though i have rea only 1 topic of Multithreading, but the way the concets have been explained makes u feel that you are not just reading the book but as you are sitting live in the class of Bert and Kathy.The Bullt Points, There re no Dumb Questions section, and every other thing i just go-visual. I would like to recommend this book to every beginner, because we must appreciate the apreciaTABLE.
Rest is fine,
still waiting 4 reply to my query????
S A Vakeel
It has been a great xerience performing those assignments in the weekend.Though i had been also preparing for my College Seminar, which is usually a boring stuff, there was more fun this time, as i was accompanied by none other than Kathy and Bert.Ya, those guys behind the animated book "Head Fist Java" made my job more easier with their ready-to-draw-anything attitude.They have just made a drawingboard of the entire book and to be really frnk, its SUPERB!!! Though i have rea only 1 topic of Multithreading, but the way the concets have been explained makes u feel that you are not just reading the book but as you are sitting live in the class of Bert and Kathy.The Bullt Points, There re no Dumb Questions section, and every other thing i just go-visual. I would like to recommend this book to every beginner, because we must appreciate the apreciaTABLE.
Rest is fine,
still waiting 4 reply to my query????
S A Vakeel
Saturday, July 21, 2007
hello frnds
hello,
the book called HeadFirst Java, which is amazing book. i red some of its topics like Arrays, Inheritance etc. and that was very beutifuly written in that......now some wht part of Arrays which was not understood is get clear....
in that each and every concept or we can say "sentences" are given with an example, which helps to understand the thing.......
their were some funny examples also their so that difficult topic can get understand more easily.....
and for each topic their is some exersice, from which i like one :- code magnet....in which we have to arrange the scatterd statements and arrange it properly so that our progr. get work....
the moto of author is that(log java ko Haste Khelte padhe), so that concepts get more clear.....he put all his thoughts in graphics pattern on the page.....wow.....it is the best book to learn Java.....
the book called HeadFirst Java, which is amazing book. i red some of its topics like Arrays, Inheritance etc. and that was very beutifuly written in that......now some wht part of Arrays which was not understood is get clear....
in that each and every concept or we can say "sentences" are given with an example, which helps to understand the thing.......
their were some funny examples also their so that difficult topic can get understand more easily.....
and for each topic their is some exersice, from which i like one :- code magnet....in which we have to arrange the scatterd statements and arrange it properly so that our progr. get work....
the moto of author is that(log java ko Haste Khelte padhe), so that concepts get more clear.....he put all his thoughts in graphics pattern on the page.....wow.....it is the best book to learn Java.....
Friday, July 20, 2007
A Complete example of Java Documentation
Hi gus,
From last one week, Tushar Sir has been pressing us hard to write java doc comments in our code and still i think, i m not upto the mark.Actually, i wanted to have an idea of how to write comments for classes and other language element which do not perform any special work, through complete example of a Samle comment for a class, a constructor, a method and for intialising variables. For ex, im having a class Student that does nothing but to store the string 'name' for the name of the variable, a getName() method for getting and setName() for setting the 'name' variable repectively. So, can anybody please help me in writing java oc comments for this class???
Waiting for reply,
S A Vakeel
From last one week, Tushar Sir has been pressing us hard to write java doc comments in our code and still i think, i m not upto the mark.Actually, i wanted to have an idea of how to write comments for classes and other language element which do not perform any special work, through complete example of a Samle comment for a class, a constructor, a method and for intialising variables. For ex, im having a class Student that does nothing but to store the string 'name' for the name of the variable, a getName() method for getting and setName() for setting the 'name' variable repectively. So, can anybody please help me in writing java oc comments for this class???
Waiting for reply,
S A Vakeel
Monday, July 16, 2007
Learning technology using Java as a medium
The learning experience is new. The Java we were knowing earlier seems different that what we learn in JPDC. Sometimes concepts seems overwhelming. Many concepts pass from above the head. Some concepts seem merely touching the mind.
The tools are new. The tools are easy. The techniques are new. There is a wow factor many a times while learning. Sometimes technical concepts appear to cross there boundaries and appear fitting to the life as whole.
There are 11 participants to the JPDC2007 course. There must be 11 different ways of expressing the things what we learn in the class. Apart from Java there are many things which may come to mind.
Where are these 11 brains. Are they all in hanged state? Do all need a reboot before they will start writing? There are only 6 posts in one week this means there is hardly any learning in the class, or we are careless not to capture the learning experien ce in words. These experiences will vanish away very quickly.
We need to build dynamism in the group. We need to write often. We need to write more. What has happened to us. Don't we even care to write a post saying oops no time today so please accept my apology post today.
This is Tushar Joshi, Nagpur writing for the JPDC2007 batch. yes the same Tushar Joshi, Nagpur who has been praised in the earlier posts. I wish to read something new other than praises to me on this blog for sure. I strongly believe that all of these participants will come daily and write something. They will soon become familiar to the way we learn in the class so it becomes routine and then they will write what they have learned each day. That day will come.
Please visit again to read more experiences of all the participants about learning technology using Java as a medium.
with regards
Tushar Joshi, Nagpur
The tools are new. The tools are easy. The techniques are new. There is a wow factor many a times while learning. Sometimes technical concepts appear to cross there boundaries and appear fitting to the life as whole.
There are 11 participants to the JPDC2007 course. There must be 11 different ways of expressing the things what we learn in the class. Apart from Java there are many things which may come to mind.
Where are these 11 brains. Are they all in hanged state? Do all need a reboot before they will start writing? There are only 6 posts in one week this means there is hardly any learning in the class, or we are careless not to capture the learning experien ce in words. These experiences will vanish away very quickly.
We need to build dynamism in the group. We need to write often. We need to write more. What has happened to us. Don't we even care to write a post saying oops no time today so please accept my apology post today.
This is Tushar Joshi, Nagpur writing for the JPDC2007 batch. yes the same Tushar Joshi, Nagpur who has been praised in the earlier posts. I wish to read something new other than praises to me on this blog for sure. I strongly believe that all of these participants will come daily and write something. They will soon become familiar to the way we learn in the class so it becomes routine and then they will write what they have learned each day. That day will come.
Please visit again to read more experiences of all the participants about learning technology using Java as a medium.
with regards
Tushar Joshi, Nagpur
Hi Frenz,
Myself Shaikh Vakeel Waheed.I m doing Master of Computer Applications (MCA) from Ramdeobaba Institute of Computer Application (RICA), Nagpur.I m writing such type if blog for the first time and to b very frank, im not a net bug i.e. i just dont like sitting on net reading and sending mails, but this is really different, as it has come from none other than our fav Tushar Sir.There is a long story behind my admission this class, ("Badi lambiiiiiiiiiiiiiii kahani hai, kabhi fursat me sunaonga"), but for right now, i just want to say that I m really enjoying the class.Though i was absent for last one week (thats y i have given m Intro at the beginning ontherwise I als like to take Introduction, but unfortunately for me and fortunately for u ppl, the newcomers were not present in today's class), still I learnt a lot in today's class.I hope all of us will have a great time together, sharing our knowledge, talent and skills.Hope to C u ppl soon. Till then, Take care, enjoy the Rain, Bye.
Wednesday, July 11, 2007
hello frnd's
It's an opportunity to write blog(i m writing it first time).........
but its nice way to express our self........... basically i dont like to study.........
god knws how i had completed my graduation(galtise collage walon ne paas kar diya)...............but now in Java class i realised that yes now its time to get serious toward life.............
and Tushar Joshi sir gives the key towords the success.........Sir is very kind.............
where as 7/7/7 was unlucky for me(sab ko yaad hoga.........main roi thi na....) ha...ha............
but today was good i understand the things, sir tought.........
//wo kya hai na dimag thodasa dhire dhire chalta hai,,,,,,,,jaladi nahi samajhata....//
bus for today this is sufficient.............baki dino ke liye kuch to bacha ke rakhu...............
but its nice way to express our self........... basically i dont like to study.........
god knws how i had completed my graduation(galtise collage walon ne paas kar diya)...............but now in Java class i realised that yes now its time to get serious toward life.............
and Tushar Joshi sir gives the key towords the success.........Sir is very kind.............
where as 7/7/7 was unlucky for me(sab ko yaad hoga.........main roi thi na....) ha...ha............
but today was good i understand the things, sir tought.........
//wo kya hai na dimag thodasa dhire dhire chalta hai,,,,,,,,jaladi nahi samajhata....//
bus for today this is sufficient.............baki dino ke liye kuch to bacha ke rakhu...............
My First Java Class...
Hello Everybody,
This is Tausif. This is first time when I am blogging on any site.It is due to the oppurtunity provided by Tushar Sir (our Java teacher) as an extra activity that we can do while learning Java to share our ideas with other freinds.
This is my first Java class.I haven't learned Java previously.From last 2.5 years I have been working onPHP at Gondia.Previously I have learned C, C++ but that was just basics.I don't have strong understanding of theObject Oriented Concepts of Java as I haven't used it previously. Now at the class we are getting familiar to Object Oriented Concepts as we are proceeding further. I really like Tushar Sir's way of teaching Java.Sir is concentrating on every Student depending on their level. Sir told us that though we are at different level our destination is same and we have to reach there.
I wish everybody to achieve this destination.
Regards,
Tausif Khan, Nagpur
This is Tausif. This is first time when I am blogging on any site.It is due to the oppurtunity provided by Tushar Sir (our Java teacher) as an extra activity that we can do while learning Java to share our ideas with other freinds.
This is my first Java class.I haven't learned Java previously.From last 2.5 years I have been working onPHP at Gondia.Previously I have learned C, C++ but that was just basics.I don't have strong understanding of theObject Oriented Concepts of Java as I haven't used it previously. Now at the class we are getting familiar to Object Oriented Concepts as we are proceeding further. I really like Tushar Sir's way of teaching Java.Sir is concentrating on every Student depending on their level. Sir told us that though we are at different level our destination is same and we have to reach there.
I wish everybody to achieve this destination.
Regards,
Tausif Khan, Nagpur
Hello frnds!
Hello frnds,
This is my first post on JPDC-2007 and I will be really very happy to share my thoughts with you all. Its been three years since I have entered teaching profession so after long time again I m feeling I have entered student life again!But this class is quite different than the usual ones where we join a Java course and learn the syntax of Language and how to write programs using the constructs of that language. Tushar Sir's goal is not to teach us Java but to teach us what we call as "Technology" and he is using Java as a medium for it. I had heard a lot about his teaching from my brother who has worked with Tushar Sir and now I have no doubts over what my brother used to say. I m really thankful to God to give us such a good teacher and a nice person too. In our class we all have come from different streams and stand at different levels.I remember the day when Rachna the youngest of all of us felt a little insecure about her existence in our class and I admire the way Sir persauded her not to run away but to face ones fear and admit ones mistakes and learn from it. Sir told us that all of us have put bricks in our ways "NOT to ask Question even if we have doubt or we havent understood" . He asked all of us to remove such bricks. I just think that nobody only a real teacher teaches all this to change our habbits, to change our attitude and confidently accepting lacunas in ourself and than removing them through practice.Thank you Sir! My best wishes to all of you.Takecare.
Regards,
Sobiya Khan, Nagpur
This is my first post on JPDC-2007 and I will be really very happy to share my thoughts with you all. Its been three years since I have entered teaching profession so after long time again I m feeling I have entered student life again!But this class is quite different than the usual ones where we join a Java course and learn the syntax of Language and how to write programs using the constructs of that language. Tushar Sir's goal is not to teach us Java but to teach us what we call as "Technology" and he is using Java as a medium for it. I had heard a lot about his teaching from my brother who has worked with Tushar Sir and now I have no doubts over what my brother used to say. I m really thankful to God to give us such a good teacher and a nice person too. In our class we all have come from different streams and stand at different levels.I remember the day when Rachna the youngest of all of us felt a little insecure about her existence in our class and I admire the way Sir persauded her not to run away but to face ones fear and admit ones mistakes and learn from it. Sir told us that all of us have put bricks in our ways "NOT to ask Question even if we have doubt or we havent understood" . He asked all of us to remove such bricks. I just think that nobody only a real teacher teaches all this to change our habbits, to change our attitude and confidently accepting lacunas in ourself and than removing them through practice.Thank you Sir! My best wishes to all of you.Takecare.
Regards,
Sobiya Khan, Nagpur
Tuesday, July 10, 2007
Welcome Contributors....
Hello everyone,
Let me take this opportunity to welcome all of you in JDPC-2007 by writing first blog.
Well, Today was my first day at the class & it's almost 2 yrs now, that I am attaining any such class. But its always a wonderful experience learning from Tushar Sir & the best part is, these learnings are not only technical but also about the habits, practices, processes & our personality developement skills. Blogging our thoughts here is just one of such good practices. Wish, we continue to contribute here on regular basis.
Regards-
Parag Agarkar, Nagpur
Let me take this opportunity to welcome all of you in JDPC-2007 by writing first blog.
Well, Today was my first day at the class & it's almost 2 yrs now, that I am attaining any such class. But its always a wonderful experience learning from Tushar Sir & the best part is, these learnings are not only technical but also about the habits, practices, processes & our personality developement skills. Blogging our thoughts here is just one of such good practices. Wish, we continue to contribute here on regular basis.
Regards-
Parag Agarkar, Nagpur
Subscribe to:
Posts (Atom)