"difference Between" Interview Questions

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View "difference Between" Interview Questions as PDF for free.

More details

  • Words: 2,004
  • Pages: 9
What is the difference between c and c++?    c is procedure oriented language and gives importance to  procedure that is functions rather than data.c is middle  level language.  c++ is object oriented language and gives importance to  object that is data  c++ is high level language    =>c does not a class/object concept  =>c++ provides data encapsulation,data  abstraction,polymorphism.  =>c++ support all c syntax  =>in c passing value to a function is "call by value"  where c++ its "call by reference"    C is procedure oriented programming & c++ is object  oriented programming.  c++ contains classes & object,c++ does not require format  specifier for printing & scanning variables.      1) In c we declare variable at the start of block...    In c++ we can declare it any where.....    2)In c we can change value of constant variable by using  pointer...  In c++ we can not....    3)In c we can not take the address of register variable..    In c++ we can...    register int x;  printf("%d",&x);   

              What is the difference between DBMS and RDBMS??      In DBMS Normalization process wille not be present and in  RDBMS normalization process will be present to check the  database table cosistency    DBMS is a ordinary system to maintain the data, whereas  RDBMS is the specific type, which follows the concepts of  set theory i.e entity etc. In DBMS there is no concept of  PRIMARY KEY and FOREIGN KEY but it is included in RDBMS.  DBMS contains only flat data whereas in RDBMS there will be  some relation between the entities.      In DBMS,client server concept is not present.    In RDBMS,client server architecture is present (i.e) the  client sends the request to the server and the server  responds to that particular request.      DBMS and RDBMS both are the management system  instead in  case of RDBMS we use foreign keys, primary keys etc. which  is not possible in case of DBMS      BMS :  Data Base Management System  ..... for storage of data and efficient retrieval of data.  Eg: Foxpro 

  1)A DBMS has to be persistent (it should be accessible when  the program created the data donot exist or even the  application that created the data restarted).  2) DBMS has to provide some uniform methods independent of a  specific application for accessing the information that is  stored.  3)DBMS does not impose any constraints or security with  regard to data manipulation. It is user or the programmer  responsibility to ensure the ACID PROPERTY of the database  4)In DBMS Normalization process will not be present    RDBMS:  Relational Data Base Management System  .....the database which is used by relations(tables) to  acquire information retrieval  Eg: oracle, SQL..,    1)RDBMS is based on relational model, in which data is  represented in the form of relations, with enforced  relationships between the tables.  2)RDBMS defines the integrity constraint for the purpose of  holding ACID PROPERTY.  3)In RDBMS, normalization process will be present to check  the database table cosistency  4)RDBMS helps in recovery of the database in case of loss of  database due to system failure or any other reason    DBMS:1)In dbms no relationship concept  2)It supports Single User only  3)It treats Data as Files internally  4)It supports 3 rules of E.F.CODD out off 12 rules  5)It requires low Software and Hardware Requirements.  6)FoxPro, IMS are Examples    RDBMS:  1)It is used to establish the relationship concept between  two database objects, i.e, tables 

2)It supports multiple users  3)It treats data as Tables internally  4)It supports minimum 6 rules of E.F.CODD  5)It requires High software and hardware requirements.  6)SQL‐Server, Oracle are examples    What is the difference between Java and the C programming language?      Java   Java is an object oriented programming language, it uses the concepts of Classes,  Objects, Inheritance, Polymorphism. And the execution of a program is non‐ linear.     Java's motto (so to speak) is "write once run anywhere".   When you compile a Java program, an intermediate bytecode is generated, which  itself is interpreted by the Java Virtual Machine.   This way you write a program once, and the virtual machine translates the  bytecode into instructions a specific processor can understand.   Execution of a Java program is by consequence a bit slow, because the  intermediate bytecode has to be interpreted.     Java uses a "Garbage Collector" which manages memory automatically so the  programmer doesn't have handle that.     Variables in Java can be declared anywhere in a program. (Although it is  recommended to declare/define them at the beginning of blocks).   Reusage of code achieved by inheritence.   By default members are private.   During the execution of bytecode by JVM, it do not substitute the entire classes of  package which are imported in the program. It just enters the package and  execute the class and returns result in to the program. Due to this less memory is  used by java program.     C   C uses concept of structures (not object oriented).  

In C we use the concept of pointers whereas there are no pointers used in JAVA   In C the programmer need to manage memory manually, lookup "malloc".   In C the declaration of variables should be on the beginning of the block.   C supports go to statement, struct and union unlike Java   C is compiled to the machines "native language" so it's execution is much faster  than Java's.   No reuse in code and by default members are public.   In C, during compilation of the program the header files that are included, their  source code is attached to the object code from the C library. Due to this the  number of lines in the program increases to more in number and also memory  wastage occurs.    Programming languages are of two types, namely;  (a). Modular or function‐based Programming Language  (b). Object‐oriented Programming Language.  (a). Modular Programming Language: A programming language is called Modular  if it supports methods. A method or a function is a block or section of code that is  logically associated with each other. This section or block of code has got its  specific or particular name. Whenever a programmer wants to execute the  specific block of code s/he used the name of that particular section or block of  code.    (b). Object‐oriented Programming Language: A programming language is called  Object oriented if it has the support to create or develop classes in it. Class is an  abstraction of a real‐world object and is used to define the characteristics,  qualities and actions performed by the object for which the class is written. For  example, a teacher is an object and if we want to write the class for a teacher  then it'll include the characteristics, specifications and actions perform by a  teacher.  C is a modular programming language and doesn't have object‐oriented features  in it.    C++ supports both modular and object‐oriented features.  Java is a completely object‐oriented language as it doesn't allow modular  programming. In Java every object has to be defined in terms of a class. 

    What is J2EE and how is it different from Java?      Answer  "Java" refers to both a language and a platform. The runtime and libraries that  comprise the platform are based on the Java language and come in 3 flavors:  Java SE (Standard Edition): Formerly J2SE but renamed to Java Standard Edition  when the Java 2 convention was dropped with the release of Java 5 (formerly J2SE  1.5). It contains a good all‐around mix of general purpose libraries including JDBC  (Java Database Connectivity), JNDI (Java Naming Directory Interface), RMI  (Remove Method Invocation), AWT, and Swing.  Java EE (Enterprise Edition): Formerly J2EE (see above). It includes Java Standard  Edition plus most of the other Java technologies including JavaMail, Activation,  JAXB (Java API for XML Binding), Servlets, JSF (Java Server Faces), JMS (Java  Messaging Service), EJB (Enterprise Java Beans), and others. Most of the APIs are  very component‐oriented and are intended to provide pluggable interfaces for  business components to form robust, distributed internet applications.  Java ME (Micro Edition): Formerly J2ME. It includes most of Java SE and some  additional APIs for handheld devices.  Java Enterprise Edition is based on Java, but includes a larger set of libraries than  Java Standard Edition, which to most people is synonymous with the word "Java."  Note that many of the technologies featured in Java Enterprise Edition are  available separately and can be added to the Java Standard Edition platform as  needed.  Answer  Hi! Java is a language and j2ee is a plateform which implements java language. 

Answer  Java can be divided into 3 categories   1.core java   2.advanced java   3.J2EE   core java and advanced java are the standard editions of java where as J2EE is the  enterprise edition   witout completing core and advanced java u will not be able to understand J2EE      What is the difference between oracle 8i and oracle 9i?    n Oracle 8i we have no concept of partitioned tablespace  and nonpartitioned tablespace. Where as in 9i we have this    Oracle 9i has a new datatype Timestamp    1. Oracle 9i run on browser but 8i doesn't  2. oracle 8i supports only 2 tier web applications but 9i  can support distirbuted applications.    1. Oracle 9i run on browser but 8i doesn't  2. oracle 8i supports only 2 tier web applications but 9i  can support distirbuted applications.    Oracle 8i and 9i are different versions of the database.  Oracle9i is a newer release to Oracle8i, it will have more  enhancements, fixes etc. New features are available to both  developers and administrators.    With Oracle each new version contains the same  functionality as the previous version. So Oracle 9i is  backwards compatible with 8i. Oracle 9i does many things  differently internally so they are not exactly the same  database engine. And Oracle 9i has a host of new features 

designed to make the database more stable, easier to manage  and increase functionality. There are so many new features  that Oracle Corp. provides a complete manual listing these  new feature. The Oracle 9i New Features manual can be found  on Oracle's Technet site at if you are interested. You will  need to register for a free account if you want to view  documentation on that site.          What is the difference between  Oracle and sql?  1. Oracle runs on many platforms, SQL on Windows only  2. Oracle includes IFS (Internet File System), Java integration, SQL is more of a  pure database  3. Oracle requires client install and setup (Not difficult, but very UNIX‐like for  Windows users)  4. SQL is #1 in Cost/Performance and overall Performance, although Oracle will  refute that  5. Replication is much easier in SQL (I have been at clients where even the Oracle  consultant couldn't get it working w/oracle)  6. Failover support in SQL is much, much easier  7. JDBC support is much better in Oracle, although Microsoft is working on it  8. ODBC support in both  9. SQL is ANSI‐SQL '92 compliant, making it easier to convert to another ANSI  compliant database, theoretically anyway (truth is every database has proprietary  extensions). Oracle is generally more proprietary and their main goal is to keep  their customers locked‐in. 

10. SQL natively supports ODBC, OLEDB, XML, XML Query, XML updates. Oracle  natively supports proprietary connections, JDBC. Not sure about XML support  though.  11. SQL Server is much easier to administrate, with GUI and command‐ line tools.  Most of Oracle is command‐line (Back in SQL 6.5 days I had a customer who was  so proud that after a day's worth of work he had managed to script his database. I  showed him how it was a 3 click operation in SQL ;‐)  12. Oracle requires add‐ons for transaction monitors, failover, etc. SQL has COM+,  uses NT clustering and generally has everything built‐in  13. SQL Analysis Services is included (A very powerful OLAP server). For Oracle it is  a separate purchase.  What is the Differences between java and java script?    here's a world of difference between the two. Javascript is used for front‐end web  development while Java can only be used as a back‐end language within a web  environment. Java doesn't need a web browser to compile and execute like  Javascript does. Java is compiled prior to runtime while Javascript is  compiled at runtime. The syntax/reserved‐words are also different. There's many  more differences if you go and do some research on the two languages.      

Related Documents