SQL Interview Questions

1. What are differences between the DELETE and TRUNCATE statement? Answer Delete only deletes a row and is slower than truncate. Truncate deletes all the rows and cannot be rolled back. 2. What are the different subsets of SQL? Answer Data Definition Language (Allows you to create and delete objects), Data Manipulation Language (Allows manipulation …

Abstract Vs Interface

Abstract and Interfaces are two important uses in Java Classes. Here are a few differences between the two of them. At the bottom I put an example of each one being used. Abstract classes are allowed to have both abstract and non abstract methods. While interface methods are ONLY allowed to have abstract methods. Abstract …

Encapsulation

Originally posted on Space Coding:
Space Coding //com.collabera.encapsulation; // (Project name here) class EncapsulationDemo{ // encapsulation = binding data with methods /** * The need for encapsulation is to make sure our “private data its safe * Since the only way that we will be able to access our data will be through methods * public = anyone can access …

Create your own website, free on WordPress.com.Create your own website.
Start free