Posts

Showing posts from May, 2025

JAVA NOTES

 HISTORY Java's history  began in 1991 at Sun Microsystems with James Gosling and his team, initially working on the "Green Project" .   The language was later named Oak, then Java, and publicly introduced in 1995 as a platform-independent language.  Sun Microsystems later became Oracle, and Java's stewardship has continued with Oracle.   1991: The "Green Project" begins at Sun Microsystems, led by James Gosling. 1992: The prototype, "Oak," is developed. 1994: The team refocuses on web-based applications. 1995: Java is publicly released by Sun Microsystems, emphasizing "Write Once, Run Anywhere" portability. 2006: Sun Microsystems makes Java's core components open-source. 2009: Oracle acquires Sun Microsystems, becoming Java's steward. 2014: Java 8 is released, modernizing the language with new features. 2017: Oracle adopts a six-month release cycle, accelerating updates
Image
  FILES USED IN A C PROGRAM: In C four types of files are used while writing and executing. They are Source code file   •          The source code file contains the source code of the program. The file extension of any C source code file is “.c”. This file contains C source code that defines the main function and maybe other functions. The main() is the starting point of execution when you successfully compile and run the program. A C program in general may include even other source code files (with the file extension .c). Header Files •          When working with large projects, it is often desirable to make sub-routines and store them in a different file known as header file. The advantage of header files can be realized when a)       The programmer wants to use the same subroutines in different programs.   b)       The program...
  first program in C #include<stdio.h> int main() { printf("\n Welcome to the world of C "); return 0; }
Image
  structure of C Program? Ans: A C program contains one or more functions. The statements in a C program are written in a logical sequence to perform a specific task. Execution of a C program begins at the main() function . You can choose any name for the functions. Every program must contain one function that has its name as main(). STRUCTURE OF A C PROGRAM A C program may contain one more sections as shown in below Documentation Section: The documentation section consists of a set of comment lines giving the name of the program, the author and other details. Link Section: The link section provides instructions to the compiler to link functions from the system library. Definition Section: The definition section defines all symbolic constants. Global Declaration Section: There are some variable that are used in more than one function. Such variables are called global variables and are declared in the global declaration section that is outside of all the functions. This ...
  Characteristics & Importance of C: §   It is a robust language whose rich set of built-in functions and operators can be used to write any complex program. §   The C compiler combines the capabilities of an assembly language with features of high-level language and therefore it is well suited for writing both system software and business packages. §   Programs written in C are efficient and fast. This is due to its variety of data types and powerful operators. There are only 32 keywords and its strength lies in its built-in functions. Several standard functions are available which can be used for developing programs. §   C is highly portable. This means that C programs written for one computer can be run on another with little or no modification. §   C Language is well suited for structured programming, thus requiring the used to think of a problem in terms of function modules or blocks. A proper collection of these modules would make a comp...
  software development life cycle (SDLC)?   The design and development of correct, efficient and maintainable programs depend on the approach adopted by the program to perform various activities that need to be performed during the development process.   The entire program or software development process is divided into a no. of phases.   The output    of    one    phase    provides    the    input    for its subsequent phase.
Image
  Explain about the structured programming languages? STRUCTURED (MODULAR) PROGRAMMING: ·       It is a subset of procedural programming that enforces a logical structure on the program to make it more efficient and easier to understand and modify.   ·       It was suggested by two mathematicians “Corrado Bohm” & “Guiseppe Jacopini” .It is also referred to as modular programming.   ·       It employs a top-down approach which allows the code to be loaded into memory more efficiently and also be reused in other programs.   ·       Modules are coded separately and once a module is written and tested individually, it is then integrated with other modules to form the overall program structure.   ·       Modularization makes it easier to write, debug, and understand the program.   ·     ...
  Different Generations of Programming languages FIRST GENERATION: MACHINE LANGUAGE This concept is precisely connected to the advances in technology that brought about different generations of the computer.   I Generation languages (1950 –Machine Level Language / Low level language / Binary Language):-   In this language all the instructions are understood by the system. These programs are executed very quickly and efficiently. Since it is directly executed by the CPU. These languages are machine languages. To write programs in these languages the system technology must be required. The data is Non-portable. That means a program written in a system does not work in      another systems.   Advantage: The main advantage of machine language is that the code can run very fast and efficiently, since it is directly executed by the CPU. Disadvantage: ·          However, this language is difficu...
  Q. Explain about the programming languages?   Programming language is a language specifically designed to express calculations that can be performed using computer.   Programming languages are used to create programs that control the behaviour of a system, to express algorithms or as a mode of human communication.   Programming languages have a vocabulary of syntax and semantics for instructing a computer to perform specific task.   Programming languages refers to high level languages such as BASIC, C,C++, PASCAL, etc. Each of these languages has a unique set of keywords and a special syntax for organizing programme instructions.   The programs that are written in any programming language has to be converted into the machine langue. There are two types to do this compiler and interpreting the program. Q. Explain Advantages of Flowcharts ·       A flowchart is a diagrammatic representation that illustrates ...