Posts

Showing posts from October, 2018

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.