Gadgets

Saturday, 14 November 2015

History of java and uses,features

History of Java and Uses

Java is a programming language and a platform. Java divided into 3 types of categories.

Java SE (java standard edition):

it deals standalone applications.

Java EE (java enterprise edition):

it deals web applications.

Java ME (java micro edition/ mobile edition):

it deals mobile applications.

History of java:

1) Java was originally developed by James Gosling and Team (also called as Green Team) at Sun Microsystems (which has since been acquired by Oracle Corporation) and released
in 1995.

2) Firstly, it was called "Greentalk" by James Gosling and file extension was .gt after that, it was called Oak (Oak is a national tree of many countries like U.S.A., France).

3) Finally in 1995 Oak was renamed as Java.

4) Java is an island of Indonesia where first coffee was produced (called java coffee).


Uses of Java:

Types of Java Applications
There are mainly 4 types of applications that can be created using java:

1) Standalone Application / Desktop Application
     Standalone applications are install on systems, such as media player, antivirus etc. AWT        and Swing are used for creating standalone applications.

2) Web Application
     Web applications create dynamic pages and run on server side. Servlet, jsp, struts,                 Hibernate, spring are used for creating web applications.

3) Enterprise Application
     Enterprise applications are distributed in nature, such as banking applications etc. It has         high level security. EJB is used for creating enterprise applications.

4) Mobile Application
     Mobile applications are used to create for mobile devices. Android and Java ME are used      for creating mobile applications.

Versions of java:

·         JDK 1.0 (January 21, 1996)
·         JDK 1.1 (February 19, 1997)
·         J2SE 1.2 (December 8, 1998)
·         J2SE 1.3 (May 8, 2000)
·         J2SE 1.4 (February 6, 2002)
·         J2SE 5.0 (September 30, 2004)
·         Java SE 6 (December 11, 2006)
·         Java SE 7 (July 28, 2011)
·         Java SE 8 (March 18, 2014)

Download and Install java:


Check java installed or not:
Commands to check java installed or not in your system “java –version” and “java –version”

C:\Users\Narendar>java -version
C:\Users\Narendar>javac –version



Features of java:-


Simple:-
Java programming language is simple because java syntax is based on C, C++ and removed many confused features e.g. pointer, operator overloading etc. there is Automatic Garbage Collection in java.

Object oriented:-
Java is a purely object-oriented programming language. Java programs use objects & classes. We learn more about object and class in next chapter.

Platform independent:-
A platform is the hardware or software environment in which a program runs. There are two types of platforms software-based and hardware-based. Java provides software-based platform. Java runs on any hardware-based platform such as windows, Linux, etc.

Distributed:-
Information is distributed on various on a network. Using java, we can write programs which capture information & distribute it to clients.

Robust:-
Robust mean strong, java programs are strong. Java programs will not crash easily because of its execution handling and its memory management features because JVM is allotted the memory.

Portable:-
Java programs give same results on all machines. Everything is clearly defined in java specification

Architecture neutral:-
Java byte code is not machine dependent. It can be run any machine with any processor & with any operating system.

High Performance:-
Java is faster than traditional interpretation since byte code is "close" to native code still somewhat slower than a compiled language (e.g., C++).

Secured:-
Java is secured because No explicit pointer and Programs run inside virtual machine.

Multi-threaded:-
A thread is like a separate program, executing concurrently. We can write Java programs that deal with many tasks at once.

Dynamic:-
We can develop programs in java which dynamically interact with the user on internet.

Friday, 13 November 2015

Create Hibernate Project in Netbeans

Hibernate CRUD Project in Netbeans IDE

In this article I explained about How to create Hibernate project in Netbeans and here I showed simple hibernate project in detailed code.
Here I have created a registration form and servlet to insert data into database, and same as I done operations retrieve, update, and delete.
Read also: 
index.jsp
<form action="Register" method="post">
        <table>
            <tr><td>Employee Id :</td>
                <td><input type="text" name="eid" value=""/></td></tr>
            <tr><td>Employee Name :</td>
                <td><input type="text" name="ename" value="" /></td></tr>
            <tr><td>Employee Salary :</td>
                <td><input type="text" name="esal" value=""/></td></tr>
            <tr><td>Employee Address :</td>
                <td><textarea name="eadd">
                    </textarea></td></tr>
            <tr><td></td><td><input type="submit" value="Register" /></td></tr>
        </table>
        </form>

Sunday, 8 November 2015

create Hibernate project by using Netbeans

Create Hibernate project in Netbeans:

In this article I explained about how to create Hibernate project in Netbeans, I hope this article will help you.

Here I displayed screen shots clearly step by step for create Hibernate project, if you follow those screen shots you can successfully create Hibernate project by using Netbeans.
















Friday, 9 October 2015

CSS Menu

CSS Menu Bar with full width

<html>
<body>
<style>
.menuhead{
            background: #2F4E6F;
            height: 40px;
            width: 100%;
            float: left;
            }       
                  
.underline-menu{
margin: 0px auto;
height: 40px;
width: 1000px;
background: #2F4E6F;
}
.underline-menu li{
position: relative;
list-style:none;
display: table-column;
float: left
padding-left: 3px;
}
.underline-menu li:hover{
background:  #C8D7E3 ;
}
.underline-menu li a{
padding: 12px 20px;
text-decoration: none;
 font-family:  Calibri;
font-size: 15px;
font-weight: bold;
color: #FFF;
line-height:40px;   

}
.underline-menu li a.lastbutton{
border-right:none;
}
.current{
     background:  #C8D7E3 ;
  }
</style>


  <div class="menuhead">           
<ul class="underline-menu">
<li class="current"><a href="">Home</a></li>
<li><a href="">Services</a></li>
<li><a href="">Samples</a></li>
<li><a href="">Process</a></li>
<li><a href="">About Us</a></li>
<li><a class="lastbutton" href="">Contact Us</a></li>
</ul>
</div>

</body>
</html>