Hamarivani.com

Computer Science Junction

Steps for java database connectivityIn the previous tutorial named as types of jdbc drivers in java  we learned about different jdbc drivers. Now in this tutorial we will learn how to create jdbc conection in java or jdbc connection with mysql or jdbc connection in java with oracle.Following steps are used to create jdbc connection in java application with database.Step 0 – Create an ODBC DSN (Data Source Name)Step 1 – load the driverClass.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); //for JDBC-ODBC BridgeNote: - if not using odbc then you will load vendor specific driver class. Check driverdocumentation.Parameter passed in forName() method to connect with different database are a...
Computer Science Junction...
Tag :
  April 7, 2019, 3:54 pm
JDBC and JDBC DriversJava Data Base Connectivity (JDBC) is an Application Programming Interface which is one of important usable in different business applications. The reason behind the widely use of JDBC is that because most of the business application software use database. In order to retrieve and store the  data in database through GUI we need some kind of connectivity between front end database . Java Data Base Connectivity (JDBC) connects java application with database.JDBC DriversJDBC API Package is java.sql and we imports this package in our jdbc application program. In this package there  are many interfaces. To connect java application  with any ...
Computer Science Junction...
Tag :JDBC
  March 31, 2019, 3:45 pm
IP Address ClassesWhat is an ip Address?What are different types of ip address classes ?What is loop back ip address?This tutorial covers the IP address introduction, types of ip address, ip address classes and loop back ip address and it's use.IP Address SpecificationIn ip addressing scheme two hosts cannot have the same IP Address.  An IP address is 32 bit binary number but generally for representation purpose IP address is represented as 4 values in decimal number system Each of the four represent the 8 bits in the range from 0 to 255 and separated by decimal point.For example 200.150.85.95 is a class C IP Address.Address Classes used for IP AddressingThere are five different ip...
Computer Science Junction...
Tag :
  March 22, 2019, 10:23 am
Network Layer TutorialThis tutorial covers the basic introduction of network layer in computer network, network layer design issues, network layer services and functions.Network Layer IntroductionNetwork layer of TCP/IP model in computer network is responsible for taking the packets from the source node or host and deliver it to the destination node. Packet goes through several intermediate node and network router during its transmission from source to destination.  The correct delivery of entire message or data packet at the destination side is verified at Transport layer by TCP protocol.The Network layer of TCP/IP protocol suite supports the Internetworking Protocol which provides the...
Computer Science Junction...
Tag :
  March 18, 2019, 1:52 pm
Physical Layer of OSI ModelLowest layer of OSI model is physical layer. Major concerns of this layer is to deal with the physical medium which is used for data communication between sender and receiver node or host or devices. This physical medium is also known as transmission media this may be copper wire, fiber in case of wired network and wireless network etc.Functions of physical layerDifferent functions of physical layer are as follow 1.Specification of Hardware:  Physical layer keeps the track of  the transmission media such as  physical cables, network interface cards, wireless radios, etc. 2. Encoding and Signaling: Encoding of bits in the medium is also decided b...
Computer Science Junction...
Tag :Computer Network
  March 15, 2019, 8:04 pm
What is AVL Tree ?AVL stands for ADELSON, VELSKI AND LANDIS. It is a tree representation commonly known as ‘AVL TREE’.Here we have explained an avl tree example in the figure. AVL tree is just like a binary search tree(BST) but it is a balanced tree in data structure. Here the the term balanced is used in context of height it means AVL Tree is a height balanced tree.in data structure. It is heught balanced binary search tree.If in binary search tree, at every node avl tree balance factor is 1 or 0 or -1, then it is AVL tree.Balancing factor of a node in VAL tree is calculated using this formulaBalancing factor = (height of left sub tree) – (height of right sub tree)An avl tree example ...
Computer Science Junction...
Tag :
  January 4, 2019, 6:09 am
What is dtd in xml ?In xml dtd stands for Document Type Definition. XML dtd is used to express the XML language. XML dtd is generally usd for the following purpose.DTD in XML is used to check the validity of XML.Structure and vocabulary of XML can be checked using xml dtd.XML dtd Checks the grammatical rules of XML language.DTD contains declaration of following XML components ElementAttributesEntitiesElements are building block of XML document.Attributes are associated with elements describe its features.Entities are placeholders in XML which can be declared in the documentFeatures of xml dtdVarious features of xml dtd are as followDTD decides the elements which appears in DTDXml dtd de...
Computer Science Junction...
Tag :
  December 29, 2018, 8:09 pm
HTML5 application cache manifest and its typesBasics of html cache manifestFor caching the web page, it is mandatory to declare the manifest with html element on every and each page. A particular webpage can’t be cached until we don’t declare the manifest file.The recommend file extension for a manifest file is appcache. The manifest file also needs to configure with the correct MIME-type, which must be configured well on the web server. The format may has follows: text/cache-manifest.What is HTML5 Manifest?It’s a simple text file, which tells the browser for particular cache processing. In details we can say it sends a command to browser for specific file type to be stored in the...
Computer Science Junction...
Tag :
  December 16, 2018, 9:43 am
What is html 5 application cacheCan you imagine that website can be accessible without any net connection? Now this is possible just because just because of html5 application cache Html5 Application Cache is an important feature of HTML5 which can store the website data in a cached version and makes it possible to access the website without any net connectivity.It helps the in storing the website on local system. Advantages of HTML5 Application CacheThe following advantages a user can have, if a user chooses HTML5 Application Cache.Offline Browsing: Offline browsing can be possible due to html5 application cache. We can use Offline browsing through html5 application cache when we have not in...
Computer Science Junction...
Tag :
  December 7, 2018, 10:05 am
HTML5 tutorial for beginnersThis html5 tutorial for beginners covers the basics of html 5 such as introduction of html5, html5 tags list, common html5 tags, html5 new features etc.(A) Overview of HTML 5       HTML5 is a hyper text markup language used foe web development or website design. HTML 5 came into existence in January 2008. W3C (World Wide Web Consortium) and WHATWG (Web Hypertext Application Technology Working Group) are two major organizations which played an important role in the development of html 5.In the next section of this html5 tutorials for beginnerswe will learn about common html5 tags.(B) New elements in htlm5 or html5 tags listThis se...
Computer Science Junction...
Tag :
  December 1, 2018, 1:49 pm
What is Array ? OR Array DefinitionArray in data structure is collection of items having same data type stored which are stored in contagious memory allocation. During array definition we should also keep in mind that array in data structure is a user define data type. Array in programming is a best data structure.Implementation of array in programming is important because of following reasonsa) Most assembly language have concept of array.b) From an array any other data structure we can be built.Why do we need array?In general if we store any data it store at any random location. Data at any random location is very tough to retrieve that’s why we need data structure.Example of an Arr...
Computer Science Junction...
Tag :DS
  November 28, 2018, 2:36 pm
What is stack in data structure?What is stack ?Push and pop operation in stack in data structureApplication and use of stack in data structure.(A) What is stack ?Stack in data structure is an abstract data type. Stack a linear data structure that allows inserting and deleting elements in a specific manner. When we want to insert an element in stack it can be added a top of the stack. All the insertion and deletion is performed at this TOP in stack in data structure.                              It use First in last out(FILO) process or Last in first out ( LIFO)Suppose if S={S0,S1,S2……Sn-1}   He...
Computer Science Junction...
Tag :DS
  November 25, 2018, 9:54 am
File handling in c programmingWhat is file ?Use of File Pointer.Different file handling function.This tutorial covers the concepts of file handling in c programming. Several file handling functions in c and their use is also explained in this tutorial. This file handling in c tutorial also covers the concepts of file pointer in c, c program to read and write to a file, opening and closing a file.What is File ?In order to understand the concepts of file handling in c programming at first we have to understand what is file ? In context of a computer system file is a collection of data or sequence of bytes stored on hard disk.What is File Pointer?In file handling in c programming C programming ...
Computer Science Junction...
Tag :
  November 23, 2018, 9:15 am
Types of errors in c programmingWhat are different types of errors in c ?Difference between syntax error and semantic error.How logical errors are different from run time errors?.Differentiate  compiler and interpreter.In this technical article  different types of errors in c programming are explained. This article also covers the difference between syntax errors andsemantic errors, difference between logical errors and run time errors and difference between compiler and interpreter is also explained in this article.(A)     Difference between Syntactic and Semantic ErrorSyntactic errors additionally called compilation errors and caused by violate ...
Computer Science Junction...
Tag :
  November 21, 2018, 5:19 am
DBMS multiple choice questions with answers for gateIn this tutorial some dbms multiple choice questions with answers for gate are given for the practice. These questions are asked in previous year GATE Exam. This tutorial covers the dbms gate questions. This Tutorial also  covers the questions based on sql queries for practice with answers. Q1. Read the following statement and find the correct option.P :  A query in Structural Query Language  can contain HAVING clause without having GROUP BY clauseQ : A  query in Structural Query Language can contain a HAVING clause only when GROUP  BY clause is also there in query.R : All attributes used in the GROUP BY clause...
Computer Science Junction...
Tag :
  November 4, 2018, 10:15 am
Difference between http and ftpWhat is ftp full form ?Functions of file transfer protocol.Differences between http and ftp.  This tutorial covers the file transfer protocol concepts and hyper text transfer protocol concepts. Objective of this tutorial is to explain the difference between http and ftp.Ftp full form is file transfer protocol. There are following differences between http and ftp(A) File transfer protocolFTP and hypertext transfer protocol each were developed to form web transmission higher.FTP is employed to exchange files between laptop accounts, to transfer files between  an account and a microcomputer (upload), or to access software package arch...
Computer Science Junction...
Tag :Computer Science Study Material for Gate
  November 1, 2018, 7:46 pm
Memory management questions and answersThis post covers the memory management questions and answers for GATE exam. Various gate questions on virtual memory are explained in this post.So let's practice these operating system memory management questions and answers for gate exam.Q1. Increasing the RAM of a laptop usually improves performance because:A.Virtual memory will increaseB.Larger RAMs area unit quickerC.Fewer page faults occurD.Fewer segmentation faults occur.Q2. Page fault happens A.When a requested page is in memoryB.When a requested page isn't in memoryC.When a page is curruptedD.When associate degree e...
Computer Science Junction...
Tag :Operating System
  October 25, 2018, 6:06 am
Process Control Block in Operating SystemWhat is Process control block  in os ?process control block diagramToday in this process control block diagram tutorial we are going to discuss about process control block , example for process control block and function of process control block and its numerous field that provides the knowledge concerning process.All the fields of a process control block are as shown in Figure 1.What is process control block in os? Operating System maintains a data structure for each process.Everyprocess has it own process control block. A unique id is assigned to each process.Operating System determine a process among all processes on the idea of this proc...
Computer Science Junction...
Tag :gate study material for computer science
  October 23, 2018, 5:45 am
Computer networking mcqComputer Networks is one of the most important subject for GATE Exam. Every year some questions are asked from Computer Networks in GATE ( CS/IT) Exam.Here in this post we are going to tell about some computer networking mcq. These computer network mcq are computer networks gate questions asked in previous years GATE Exam. Try to solve these computer networking mcq. If you have any problem in any questions then please write it in comment.Q1. Tell that Which among the following option is not correct about internet Protocol (IP) ?(A)     Can a computer have more than one IP addresses.(B) Can IP packets take different routes in the network from th...
Computer Science Junction...
Tag :
  October 14, 2018, 2:35 pm
File management in operating systemToday in this post I am going to discuss about file concept in os and file management in operating system. In this post we will learn about different types of files in operating system.What is file ?Generally  a file is a collection of records. A file can also be defined as a named persistent sequential (structured) data repository. The basic idea behind the creation of a file is  that files can be used to store data for long periods of time, and specifically.  File as a collection of related information is recorded on the secondary storage like magnetic disk. Magnetic tape and optical disk.Attributes of file Under this heading we will learn ...
Computer Science Junction...
Tag :Operating System
  June 30, 2018, 1:40 pm
What is thrashing ?Today I am going to introduce about thrashing in os. So what is thrashing in os ? Thrashing is a state which occurs when a process is spending more time in paging or swapping than its execution. In thrashing state CPU is so much busy in swapping that it can not respond to user program as much as it required.Causes of ThrashingThrashing is not good for performance point of view. Now I will tell about the causes of thrashing actually Initially when the CPU utilization is low, then process scheduling mechanism, loads multiple processes into the memory at the same time in order to increase the degree of multi programming.So now in this situation we have more number of processe...
Computer Science Junction...
Tag :Thrashing in os
  June 18, 2018, 9:23 am
Cache Mapping TechniquesToday in this cache mapping techniquesbased tutorialfor Gate  we will learn about different type of mapping techniques used in cache memory. These techniques are used to fetch the information from main memory to cache memory. There are three type of mapping techniques used in cache memory. Let us see them one by oneThree types of mapping procedures used for cache memory are as follows -(i) Associative mappingThe fastest and most flexible computer used associative memory in computer organization. The associative memory stores both the address and content (data) of the memory word. This permits any location in cache to store any word f...
Computer Science Junction...
Tag :gate study material for computer science
  June 15, 2018, 6:04 am
Java Programming Interview Questions       java is an Object  Oriented Programming Language. Which is mostly used to develop Windows based Software  as well as Web Based Project. Some basic core java interview questions are asked in interview for the post of  Java Developer . In this post I am telling about core java interview questions  for freshers at basic level. These java interview questions and answers questions are related to Variable, operators, JVM and Jdk, Interface and access specifier, methods , class, use of final keyword etc.Q          ...
Computer Science Junction...
Tag :Top 30 Core Java Interview Questions with Answer
  June 12, 2018, 4:29 pm
Hello Friends, Today in this post we will practice some computer organization mcq . These questions are based on gate pattern.COMPUTER ORGANIZATION AND ARCHITECTUREPractice Set 3(Instruction Pipelining, Cache & Main memory, Secondary Storage)1. More than one word is put in one cache block to(a) Exploit temporal locality references in a program(b) Exploit spatial locality references in a program(c) Reduce miss penalty(d) All of these2. A pipeline P is found to provide a speedup of 6.16 when operating at 100 MHz and an efficiency of 88 percent. How many stages does P have?3. How big is a four way set associative cache memory with a block size of 64 Bytes and containing 1024 sets?4. A ...
Computer Science Junction...
Tag :computer science study material for gate exam
  May 27, 2018, 9:01 am
 C  Programming Practice Question for GATE ExamHello Friends today in this post we will practice some c programming mcq. So practice these c programming mcq with answer. Loops and Cotrols1. Consider the C program below.#include int *A, stkTop;int stkFunc (int opcode, int val){static int size=0, stkTop=0;switch (opcode){case -1:size = val;break;case 0:if (stkTop < size ) A[stkTop++]=val;break;default:if (stkTop) return A[--stkTop];}return -1;}int main(){int B[20];A=B;stkTop = -1;stkFunc (-1, 10);stkFunc (0, 5);stkFunc (0, 10);printf ("%d\n", stkFunc(1, 0)+ stkFunc(1, 0));}The value printed by the above program is ___________(a) 9 (b) 10(c) 15 (d) 17Solution: Option (c)2...
Computer Science Junction...
Tag :C programming study material for gate exam
  May 26, 2018, 5:02 am
[ Prev Page ] [ Next Page ]

Share:
  हमारीवाणी.कॉम पर ब्लॉग पंजीकृत करने की विधि बहुत सरल हैं। इसके लिए सबसे पहले प्रष्ट के सबसे ऊपर दाईं ओर लिखे ...
  हमारीवाणी पर ब्लॉग-पोस्ट के प्रकाशन के लिए 'क्लिक कोड' ब्लॉग पर लगाना आवश्यक है। इसके लिए पहले लोगिन करें, लोगिन के उपरांत खुलने वाले प...
और सन्देश...
कुल ब्लॉग्स (3872) कुल पोस्ट (188653)