Archive for April, 2011

Back to Java Basics-star problems-1

April 26, 2011 Leave a comment
 1: package star;
 2: import java.util.Scanner;
 3: public class Main {
 4:     public static void main(String[] args) {
 5:         Scanner input=new Scanner(;
 6:         System.out.print("Enter No\n");
 7:         int n=input.nextInt();
 9:         for(int b=0;b<n;b++){
 10:             for(int a=0;a<b+1;a++){
 11:                 System.out.print("*");
 12:             }
 13:             System.out.print("\n");
 14:         }
 15:     }
 16: }


Enter No






Read more…

Categories: Programming Tags: , ,

C#.Net (Short Notes)

April 26, 2011 Leave a comment
  • no multiple inheritance
  • no pointers(insafe)
  • operator overloading
  • enumerations
  • preprocessor directives
  • CLR-The Common Language Runtime
    • It’s a framework layer the resides above the OS and handles the execution of all .net Applications
    • our .Net Applications


      Windows OS

  • MSIL-Microsoft Intermediate Language
    • OS & Hardware independence with cross language relationship
      .Net Code Language Compiler—> MISL
      Just In Time Compiler(JITler)—> Execution
      native code
  • FCL-The Framework Class Library
    • It contains thousands of classes to provide access to window API and common to common Data Structure,IO,Thread,Streams,Security and network programming
  • CLS-The Common Language Specification
    • It guaranteed to be usable in any other .Net Language
  • CTS-The Common Type System
    • Each .Net compliant language should map its data types to these standard data types
  • GC-Garbage Collection
    • Dynamically allocates memory space
  • The Visual Studio.Net IDE
    • IDE,Debugger,Project & Solution Explorer,Class, properties tab,tool box,standard menu and toolbars.
    • Our .Net Application:-WinForms, WebApp, Web services
      Data(ADO.Net) and XML Library
      Windows OS
  • Namespace in C#-simply a logical collection of related classes.

Comparison of different computer languages

April 26, 2011 Leave a comment
Characteristic PHP C++ Java
Founder Rasmus Lerdorf Bjarne Stroustrup Sun Microsystems Microsoft
Intended use Web, Server-side Application, System Application, Web Application,
Paradigm imperative, procedural, object-oriented, reflective imperative, procedural, object-oriented, generic imperative, object-oriented, generic, reflective imperative, object-oriented, functional,
Standardized? no 1998, ISO Yes, De-facto standard through the Java Language Specification 2000, ECMA, ISO
extension .php .c,.cpp .java .cs
object oriented yes yes yes yes
thread     yes yes
multiple inheritance   yes no no
platform-independent yes yes yes no
data pointer no yes no no
garbage collection   no yes yes
compiler no yes yes  
interpreter yes      
operator overloading     no  
generic functions     no  
Categories: Uncategorized Tags: , , , ,

Software Engineering(Short notes-1)

April 25, 2011 Leave a comment
  • Software

Computer Program+Associative documents

  • Attribute of good SW:-
    • Maintainability

add component without change

    • Dependability


    • Efficiency

minimum # of resources uses

    • Usability

Usable for users

  • Difference between SW n other products

logical rather than physical;
doesn’t ware out ;
difficult to see progress;
developing or engineering not manufacturing

  • Software Engineering
It is a systematic,disciplined,quantifiable approach to development,operation and maintains of SW.
Software Process Set f activities that goal is to develop or evolution of SW.
Basic Steps:-  
Requirement Analysis & Specification Problem definition;
Requirement Analysis
Development Design system & code
Validation & Testing Check whether provide output as customer want
Documentation Manual & associated documents
Maintenance consider how to deal with newly discover problem or new requirement
Categories: Short notes

Object Oriented Programming Concepts(Short notes-1)

April 25, 2011 1 comment
Class Template representing entities with common state & behaviors ; passive
Object Instance of a class ; active
Abstraction Process of identifying minimum set of common characteristic of the entities to be represented
Encapsulation Process of combining state & behaviors into a self contained unit
Inheritance “is a” relationship(Generalization & Specialization)
Substitution Principle In class hierarchies it should be possible to treat specialized object as if it was base class object
Polymorphism Ability to take many forms when it form
Overloading Same method name with different signature
Overriding Same method name and signature with different implementation
Associations:- relationship
Inheritance “is a”  relationship
Composition “has a” relationship
Aggregation “whole part” relationship
Association simplest relationship
interface collection of methods without implementation
OOSystem System that consist with classes objects and relationships or interaction among them
OOAnalysis to identifying interaction between user and the system
OODesign process of providing an abstract solution for a given problem
Categories: Short notes