This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Showing posts with label corejava. Show all posts
Showing posts with label corejava. Show all posts

Tuesday, 24 December 2013

intoduction to java

  1. 3) Enterprise Application

    An application that is distributed in nature, such as banking applications etc. It has the advantage of high level security, load balancing and clustering. In java, EJB is used for creating enterprise applications.

    4) Mobile Application

         An application that is created for mobile devices. Currently Android and Java ME  are used for  creating                mobile applications.

java introduction

INTRODUCTION TO JAVA


Java technology is widely used currently. Let's start learning of java from basic questions like what is java, where it is used, what type of applications are created in java and why use java?

What is Java?

java is a programming language and a platform.
Platform Any hardware or software environment in which a program runs, known as a platform. Since Java has its own Runtime Environment (JRE) and API, it is called platform.

Where it is used?

According to Sun, 3 billion devices run java. There are many devices where java is currently used. Some of them are as follows:
  1. Desktop Applications such as acrobat reader, media player, antivirus etc.
  2. Web Applications such as irctc.co.in, onlinesbi,redbus.
  3. Enterprise Applications such as banking applications.
  4. Mobile
  5. Embedded System
  6. Robotics
  7. Games etc.

    Types of Java Applications

    There are mainly 4 type of applications that can be created using java:

    1) Standalone Application

    It is also known as desktop application or window-based application. An application that we need to install on every machine such as media player, antivirus etc. AWT and Swing are used in java for creating standalone applications.

    2) Web Application

    An application that runs on the server side and creates dynamic page, is called web application. Currently, servlet, jsp, struts, jsf etc. technologies are used for creating web applications in java.

Sunday, 8 December 2013

Types of java Software's

We have two type of java Software's 


  1. JDK
  2. JRE
JDK Stands for Java Development Kit contains both Compiler and JVM so we can develop new java application and also modify and execute already developed applications.

JRD Stands for Java Runtime Environment contains only JVM so we can execute already developed applications.

Question: What is the difference between JDK / JRE / JVM ?


  • JVM is the sub-set of JRE and JRE is sub-set of JDK.
  • Using JDK we can develop and execute new applications as it contains COMPILER and JVM .
  • Using JRE we can only execute already developed applications as it contains JVM.
  • JVM is platform of Java using which Java programs are excute.
Bellow diagram shows above details




Three Environments existed in companies 

  1. Development Environment : Developer are responsible to develop project so in developer computer,so in developer computers should Install JDK.
  2. Testing Environment : Will work testers to test project test they execute project hence we must install JRE in testers computer.
  3. Production Environment : Customers responsible to perform business operations they execute java project hence we must install JRE in customer computer.

Note :

  1. We shuold install  JRE in customer or Tester computer only it web supportive application is developed using APPLETS.
  2. Now a days APPLETS are not using for developing applications instead HTML and JSP.
  3. So we no need to install JRE,Just install browser Software is sufficient.

Java Program Development Compilation and Execution Procedure


  • In java programming language all source code is first written in plain text file ending with the java extension.
  • Those source files are then compiled into class files by the java compiler.
  • A class file doesn't contain code that is native to the processor.
  • It instead contains byte codes the native language of the java virtual machine(JVM).
  •  The java launcher tool then runs your application with an instance of the java virtual machine
Below Commands we must use for compilation and execution 
  • javac abc.java (java file)
                  abc.class
  • java abc
                   output.

Saturday, 7 December 2013

Types of Applications developed by using Java language.

Below Diagram shows clear explanation
Share If You Like It...

Thursday, 5 December 2013

How Java Achieved Platform Independency ?

Java Achieved platform independency by moving machine language generation from compilation phase to execution phase by introducing byte code and JVM.

  • Byte code is An Intermediate code which is the native language of JVM.
  • JVM is translated software it runs java byte code by converting it into current OS machine language.
Java slogam: Write Once Run Anywhere (WORA).

Diagram Shows Java Platform Indipendency:

Click on image for Zoom


Share with your friends if you like...

Why C , C++ Languages are platform dependent? Why C Programming can't execute Different Operating System?

Because the compiled code contains machine language whose format only understandable by current operating system in which we compile.
That means if we compile in windows Operating System ,we can execute it in any higher version of windows Operating System but not in different Operating System either in Linux/Solaris.

Below Diagram shows Clear Explanation:

Click on image for zoom

Conclusion :

  • From the above diagram we can say C-compiler software is different from Operating System,because it has to generate machine language separately specific to Operating System.  
  • Since C Software means Compiler +  Linker + header Files
  • C Software is also platform dependent.as compiler is dependent.hence one OS C Software will not work in another OS.

Common Terminology using programming language

1.Source Code : Developer written program is called source code.            
   Example:  .c , .cpp , .java , .cs 
2.Compiler code:Compiler generated from source code is called compiler code.            
   Example:  .obj , .class , .msil
3.Executable code:The program i.e ready to execute and get output.          
   Example: .exe , .bin , .sys , .cmd , .sh , .dll
4.Compiler/interpreter: Translated software converts source code into platform understandable code.                                                                                   
   Example: OS , JVM , CLR(.NET)
5.Compilation:The process of converting source code into compiled code is called compilation.
6.Execution:The process of running compiled code to get output is called execution.

     Difference between Compiler and Interpreter: Compiler converts complete source code into compiled code at a time.where as Interpreter converts line by line.

Generally programming languages interpreter is used for translating part of the program.Java programming language is called interpreter is called interpreter programming language.because it also uses interpreter for java programming execution.

Frameworks

1.     Struts
2.     Hibernate
3.     Springs are not developed by sun micro system.They are developed by other companies by using java language and technologies.
4.     Hibernate is develop to solve JDBC Transaction problems it is developed by Gavin King.
5.     Struts is develop to solve the problems on servlets and JSP.It is developed by Apache Company.
6.     String is Framework of Framework.it is given to integrate java frameworks in projects.this is the cause Springs framework called integration framework.it is developed by Rod Johnson.
7.     Java has totally,
  • Language Concepts
  • API
  • Technology
  • Frameworks
In Industry Projects are developed using frameworks.

The below diagrams shows above Four things developing order.
Click on image for zoom


introduction to Java Language

·        
Java is a programming language.

·         platform and technology ,it has syntax's to develop program,so it is language.

·         It has it's own Environment to execute java program i.e JVM (Java Virtual Machine) so is is Platform.

·         It has Ready made code to develop programs for reading data from network and storing data permanently in data base so it is Technology.

·         Servlets ,Jsp, for Reading data from Network down.

·         JDB,EJB for storing data in database permanently.

 click on image for zoom

Wednesday, 4 December 2013

Welcome To JavaTCup


I am Harishkumar Reddy ,Started this blog to share my knowledge to this world as my level best.Many of the students, they are struggling to explain the exact answer in interview.I will give clear explanation on every topics as my Knowledge.In this blog i am going to explain core java , Jdbc, Servlets ,JSP Servlets ,Oracle ,My Sql ,HTML ,CSS and many more we will update soon.Thank you.

Harishkumar Reddy


Connect With Me on    Twitter Facebook Google Plus LinkedIn RSS Feed Email



Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More