💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
Vb.net basics 1(vb,net--3 year)
1. Java and .net
• Java and .NET are known programming languages. These languages belong to different
platforms, Java is a Oracle Trademark, and Oracle licensed software programming
language, whereas .NET is a Microsoft's CLI executable environment and programming
language.
• Java is a famous open source programming language product of Oracle trademark. In
June 1991, James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java
language project. In 1995, Sun Microsystems released the first public implementation as
Java 1.0. Oracle provides it with the free and open source platform which comprises of
JDK (Java Development Kit). It works on the application of "write once, Run anywhere"
(WORA), which means that the code runs on one platform and further does not need to
be recompiled to run on another. It was rated as the top programming languages of
2012 series. Sun has also re-licensed most of its Java technologies under the GNU
General Public License.
The Java language creation is based on five most primary goals, that is:
• It should be "simple, object-oriented and familiar"
• It should be "robust and secure"
• It should be "architecture-neutral and portable"
• It should executed with "high performance"
• It should be "interpreted, threaded, and dynamic"
2. .net
• .NET is the most upcoming and advanced programming language in the computer
and IT sectors. Initially, Microsoft developed the .NET Framework in the late 1990s,
and named it originally as, Next Generation Windows Services (NGWS). Its first
beta version, .NET 1.0 was released in late 2000s.
• .NET framework usually pronounced as dot net, is a computer software framework
invented by Microsoft, and runs primarily on the Microsoft Windows OS
(Operating Systems). Its Framework's Base Class Library facilitates user interface,
data access, database connectivity, cryptography, web application development,
numeric algorithms, and network communications features. The language includes
a large library and is known to provide the language interoperability (which means
each language can use code written in other languages) across several
programming languages. .NET provides a software environment for the executable
.NET Framework programs. The language also includes a hardware environment,
known as the Common Language Runtime (CLR), which is an application virtual
machine. The .NET Framework is composed of class library and CLR. The .NET
developers produce software by combining their own source code with .NET
Framework and other libraries. The language is now applicable in most of the
recent developed applications like mobile, android, tablets and etc.
3. Cont..
Its Design features include:
• Interoperability
• Common Language Runtime engine
• Language independence
• Simplified deployment
• Security
• Portability
4. Difference
Java .NET
Web definitions Java is a computer
programming language
that is concurrent, class-
based, object-oriented,
and specifically designed to
have as few
implementation
dependencies as possible.
The .NET Framework is a
software framework
developed by Microsoft
that runs primarily on
Microsoft Windows. It
includes a large library and
provides language
interoperability across
several programming
languages
Inventors Oracle and Sun
Microsystem
Microsoft
Supports Java supports only Java
simple code and
programming patterns.
.NET is a runtime
framework that supports
multiple languages, Visual
Basic and C#.
5. Cont..
Java .NET
Runs on Java is platform
independent, that is, it
runs on several operating
systems including
Windows, Mac and Linux.
.NET is primarily for
Windows.
Virtual machines Here, JVM (Java Virtual
Machine) converts the
bytecode into machine
code.
Here, Microsoft's virtual
machine, converts the
bytecode to machine code.
Important components It comprises of JVM, JRE,
JDK, Java Applets, java
script and Swings.
It comprises of .NET
framework, composed of
Common Language
Runtime (CLR), virtual
machine, and various
applicative binary libraries.
6. Cont..
Java .NET
Garbage cleaning facility The Java provides a good
Garbage cleaning facility as
compared to. NET.
The Garbage cleaning
facility is not that efficient
in .NET as compared to
Java.
Extra features There are no such extra
features available in Java.
In .Net, a standard
development IDE
(Microsoft Visual Studio) is
available.
Versions JDK Alpha and Beta
JDK 1.0
JDK 1.1
J2SE 1.2
J2SE 1.3
.NET Framework 1.0
.NET Framework 1.1
.NET Framework 2.0
.NET Framework 3.0
.NET Framework 3.5
File Extensions java, .jav, .jad, .jar, .jsp,
.class
.asax, .ascx, .ashx, .asmx,
.aspx
30. Collection and list
• A collection is an object. It contains references to
other objects. In this way VB.NET combines many
class instances and values together. With
collections we construct object models that
mirror real-world problems.
• List
You often need to store many elements in a
resizable array. You might not even know how
many elements are needed when you begin. The
List and ArrayList types are excellent for programs
with this requirement. The List type is best.
33. Modules
• A Module statement defines a reference type available throughout its
namespace. A module (sometimes called a standard module)is similar to a
class but with some important distinctions. Every module has exactly one
instance and does not need to be created or assigned to a variable.
Modules do not support inheritance or implement interfaces. Notice that
a module is not a type in the sense that a class or structure is — you
cannot declare a programming element to have the data type of a module.
• You can use Module only at namespace level. This means the declaration
context for a module must be a source file or namespace, and cannot be a
class, structure, module, interface, procedure, or block. You cannot nest a
module within another module, or within any type. For more information,
see Declaration Contexts and Default Access Levels (Visual Basic).
• A module has the same lifetime as your program. Because its members
are all Shared, they also have lifetimes equal to that of the program.
• Modules default to Friend (Visual Basic) access. You can adjust their access
levels with the access modifiers. For more information, see Access Levels
in Visual Basic.
• All members of a module are implicitly Shared.
34. Cont..
• Declares the name of a module and introduces the definition of the
variables, properties, events, and procedures that the module
comprises.
[ <attributelist> ] [ accessmodifier ] Module name [ statements ]
End Module
Parts
attributelist Optional.
accessmodifier Optional. Can be one of the following:
Public
Friend
statements are Optional.
End Module Terminates the Module definition.