Posts

Inheritance in java

Image
                                                                                                                                                            Inheritance refers to the process of creating a class in hierarchical manner. Why inheritance is important ? To reduce the time taken to develop a software. Code can be reused that is code re-usability. The profit made by the company would be increase. as the amount of time reduces the company can make huge profit on the other hand if the amount of time taken to develop software increases the profit made by the company also decreased. One ...

program to H+ELL+O W+ORLD print + before each vowels

  Enter string hello world H+ELL+O W+ORLD import java.util.Scanner; public class Demo3 { public static void main(String[] args) {   String s; Scanner scan = new Scanner(System.in); System.out.println("Enter string"); s= scan.nextLine(); s= s.toUpperCase();    for(int i=0;i<s.length();i++) {     if (s.charAt(i)=='A'|| s.charAt(i)=='E'|| s.charAt(i)=='I'|| s.charAt(i)=='O' || s.charAt(i)=='U') { System.out.print("+" + s.charAt(i)); } else { System.out.print(s.charAt(i)); } } } }

Linker, object file, executable file

Linker -   It is a software accept object file one of its  input and links with requires library files. There are two types of linker 1. Linkage editor 2. Linking loader 1. Linkage editor   It produce an executable file and stores it in hard disk. 2. Linking loader   It will directly load executable image on the ram. Object File -   It can't be executed.  It is incomplete file.  It occupies less memory.  Output of compiler. Executable File It can be executed. It is complete file. It occupies more memory. Output by linkage editor Note  Java compiler accepts high level java program as input and converts it to intermediate level code. Intermediate level code is such a code which is neither in high level nor in machine level. Intermediate level code is also called as byte code. JVM is a software which converts byte code to machine level code. Byte codes are placed inside a file called as class fi...

Main reasons for Java Success

1. Portability 2. Freely Downloadable 3. Open Source Portability - A java program which is coded in one computer can be ported to transfer to any other computer and can be executed to the any operating system.  hence java is called as  - Operating independent language  - Platform independent language  - Internet programming language  - Architecture neutral language  - WORA (write once run anywhere) Open Source -   open source means for the growth of java programming language a new features can be added by not only by micro-system engineering by any by any of the freelance, independent thinkers, employee of another company. due to this java is grow reach in features graspically.  Note - Programming  provide (a computer or other machine) with coded instructions for the automatic performance of a task.

Difference between compiler and interpreter

Compiler It coverts high level code to machine level code. It converts all the lines of high level code to machine level code at ones. The advantage of compile and executable programming execution speed is very fast. However it occupies lot of memory. Interpreter  It converts high level code to machine level code line by line. It occupies less memory. It is slow in execution. Note- Java is a hybrid programming language, which makes both compilation and implementation initially.   

Life History of Designer of JAVA

James Gosling In 1984-2010 he is working in Sun  Micro systems. He is also called as Father of Java programming language. Sun-micro systems acquired by the Oracle Corporation  Gosling quits sun due to ethical challenges. In 2011 he has been hired by Google. But he join STARTUP company in August 2011 i.e. Liquid Robotics. He is listed as an adviser to SCALA  SCALA is a Scalable programming language.      

History of some programming languages

A microprocessor is a machine which is made up of transistor and can understand only 0's and 1's only i.e. machine level language.  Assembler is a software which converts assembly level program to machine level program. Compiler is a software which converts high level language to machine level language code. B CPL language is introduced in 1962 by Martin Richard which occupies lot memory. B  language is introduced by ken Thomson in 1965. C language is introduced by Dennis Ritchie  in 1972. C++ language is introduced by  Bjarne Stroustrup  in 1982. JAVA Unofficially introduced by    James Gosling    in 1992. JAVA  Officially   released in 1994.