Monday, July 14, 2014

Java Basics Tutotial-1 | Indihack

Java Basics Tutotial-1

http://happytech.org/wp-content/uploads/2013/10/java.jpeg 

Java is a high level programing language .Java help us to play online games, chat ,audio and video and much more. Java is mostly used in e-banking and e-marketing areas.  This tutorial will teach you about java programing.  Java is simple and easy to compile, run, debug other than various programing languages. Java is a platform which is flexible and most significant feature of java is to run a program easily from one computer to another.Now check the example program copy and paste it in notepad and save it anything.html.  
Example Program 1 :

<html>
<body>

<h1>My First Web Page</h1>

<script type="text/javascript">
document.write("<p>" + Date() + "</p>");
</script>


</body>
</html>
 Example Program 2 :



<html>
<head>
<script type="text/javascript">
function displayDate()
{
document.getElementById("demo").innerHTML=Date();
}
</script>

</head>
<body>
<h1>My First Web Page</h1>
<p id="demo"></p>
<button type="button" onclick="displayDate()">Display Date</button>
</body>
</html>
 
 In Tutorial Two we will see What are if else statement and how to use it and various program
Thanks for reading

You may also like : Innobuzz Hacking E-book 

0 comments:

Post a Comment