Ad Section

Welcome To Developer Collage For Free HTML, PHP, CSS, JAVA, Wordpress Training in 2018

Description of Blog.

Benefit Broken Link Building: A Way To Take Advantage Of A 404 Page

WordPress Ecommerce Definite Guide 2018 | Updated

WordPress Ecommerce Definite Guide 2018 | Updated

Microsoft Ready To Invest 1 Billion $ In Hololens | CNN News

Microsoft Ready To Invest 1 Billion $ In Hololens | CNN News

The Perfect SEO Guide Of 2017 That Actually Works | WordPress

The Perfect SEO Guide Of 2017 That Actually Works | WordPress

Facebook Is Releasing Some New Features In 2018

Facebook Is Releasing Some New Features In 2018

Saturday 27 June 2015

Top 10 Java Inheritance Interview questions

Top 10 Java Inheritance Interview questions

1.what is inheritance?
  • inheritance is one of the oops concepts in java.inheritance is concept of  getting properties of one class object to another class object.
  • Inheritance represents the IS-A relationship,also known as parent-child relationship.
2.what are the types of inheritance?

1.Multiple inheritance( java doesn't support multiple inheritance).
2.Multilevel inheritance.

3.How Inheritance can be implemented in java?
  • Inheritance can be implemented in JAVA using below two keywords:
1.extends
2.implements
  • extends is used for developing inheritance between two classes and two interfaces.
  • implements keyword is used to developed inheritance between interface and class.
4.Why we need to use Inheritance?

1.For Code Re usability.
2.For Method Overriding.

5.what is syntax of inheritance?

public class subclass extends superclass{

//all methods and variables declare here
}

6.what is multilevel inheritance?
  • Getting the properties from one class object to another class object level wise with different priorities.
6.what is Multiple inheritance?why Java Doesn't Support multiple Inheritance.
  • The concept of Getting the properties from multiple class objects to sub class object with same priorities is known as multiple inheritance.
  • In multiple inheritance there is every chance of multiple properties of multiple objects with  the same name available to the sub class object with same priorities leads for the ambiguity. also known as diamond problem. one class extending two super classes.
  • Because of multiple inheritance there is chance of the root object getting created more than once.
  • Always the root object i.e object of object class hast to be created only once.
  1. Because of above mentioned reasons multiple inheritance would not be supported by java.
  2. Thus in java a class can not extend more than one class simultaneously. At most a class can extend only one class.

8.How do you implement multiple inheritance in java?
  • Using interfaces java can support multiple inheritance concept in java. in java can not extend more than one classes, but a class can implement more than one interfaces.
Program:

interface A{

}
interface B{
}
class C extends interface A,B{
}

9.Can a class extend itself?

  • No,A class can't extend itself.

10.What happens if super class and sub class having same field name?


  • Super class field will be hidden in the sub class. You can access hidden super class field in sub class using super keyword.

Java SE : Top Java Interview Questions And Answers 2015

Java SE : Top Java Interview Questions And Answers 2015

2. What is synchronization?

  • With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources.
  •  Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object’s value. This often leads to significant errors.

3. What’s new with the stop(), suspend() and resume() methods in JDK 1.2? 

  • The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.

4. Is null a keyword?

  •  "null"  is not a keyword. .null is a literal.

5. What state does a thread enter when it terminates its processing?

  • When a thread terminates its processing, it enters the dead state.

6. What is the Collections API?

  • The Collections API is a set of classes and interfaces that support operations on collections of objects.

7. What is the List interface?

  • The List interface provides support for ordered collections of objects which allows duplicate elements also.

8. What is the Vector class?

  • The Vector class provides the capability to implement a growable array of objects

9.Can we instantiate Abstract class?

  • We can not create object for abstract class directly. but indirectly through sub class object we can achieve it.

10.What is the first keyword used in a java program?

  • Its "package" keyword.

11.When a class should be defined as final?

  • If we do not want allow subclasses.
  • If we do not want to extend the functionality.

12.Can we declare abstract method as static?

  • No, we are not allowed to declare abstract method as static.
  • It leads to compilation error: illegal combination of modifiers abstract and static.

13.Can we apply abstract keyword to interface?

  • Yes, it is optional.
  • abstract interface A{}

14.Can we write empty interface?

  • Yes it is possible it is marker interface.
  • interface A{}

15.Can we declare interface as final?

  • No, it leads to compile time error. Because it should allow sub class.

16.How to solve ClassCastException?

  • To solve  ClassCastException we should use instanceof operator.
  • obj instanceof class_name

17. Is “xyz” a primitive value? 

  • No, it is not primitive it is string literal.

18.When is an object subject to garbage collection? 

  • An object is subject to garbage collection when it becomes unreachable to the program in which it is used.

19.What method must be implemented by all threads? 

  • The run() method, whether they are a subclass of Thread or implement the Runnable interface.

20.What happens if an exception is not caught?

  • An uncaught exception results in the uncaughtException() method of the thread’s ThreadGroup being invoked, which eventually results in the termination of the program in which it is thrown.

21.How are this() and super() used with constructors?

  • this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.

22.Under what conditions is an object’s finalize() method invoked by the garbage collector?

  • The garbage collector invokes an object’s finalize() method when it detects that the object has become unreachable.

23.What restrictions are placed on method overloading? 

  • Methods should have same name  and defer in parameters.

24.When does the compiler supply a default constructor for a class? 

  • The compiler supplies a default constructor for a class if no other constructors are provided.

25.What modifiers can be used with a local inner class?

  • A local inner class may be final or abstract.

For More Questions Check below on your interest:

1. Concept and Interview Program

2. Concept and Interview Questions

3. 0-3 Years Core Java Interview Questions

18 Best Free HTML5 CSS3 Website Templates 2015

18 Best Free HTML5 CSS3 Website Templates 2015

In this article I’m sharing around 18 Best Free Responsive HTML5 CSS3 Website Templates. These templates can be download and used for a variety of projects including business, portfolio, product, services. These free html5 templates are packed with amazing features and to find such a clean, responsive template. We use CSS or CSS3 for styling website like color combination, font style, font selection and more. We can create a beautiful, responsive html5 template with the use of css3.

UNIVERSAL – Business & E-Commerce Template

Universal is clean and stylish universal website template built with Bootstrap 3.3.2. It stands out with its clean design and elegant typography.
This theme includes 45 HTML pages so you should have everything you need to start developing new business, portfolio or ecommerce website. Along with the 45 pages you will get also 11 pages showcasing Bootstrap elements and possible template modifications.

Avada-Plus – Responsive HTML5 Agency Template 

Avada Plus, a Free Responsive HTML5 Agency Template.

Backyard – High Converting Landing Page

Backyard is a free landing page template by MoxDesign. Backyard is a beautiful high converting landing page template built with Bootstrap 3. It has 5 different header styles and 6 color variations. Well organized and comment codes so it’s very easy to customize and use in your projects.
Backyard is a multipurpose landing page template that can be adapt to all your needs. You can use it for education, health, start up, web app, phone app, real estate, travel service project, etc.

Bukku – Free HTML/CSS Book Template

Bukku is a professional e-book template, it’s fully responsive, looks stunning on any device. It features a very clean and professional design.

Cafe & Restaurant Free Website Template

Cafe is a classy and trendy theme created for cafe & restaurant, food & drink, brewery, gifts, hobbies & crafts and many other websites. Being well-coded, it makes building and managing your website quick and easy. It offers a clean contemporary design that aims to provide an excellent user experience, and engage people who visit the site. With a full-width slider, ideal for menu presentation, embedded gallery on the front page, convenient burger menu and well designed layout, this theme comes with a whole range of features necessary for creating a successful site.

Focal- A responsive portfolio Template

Forkio: One-Page Bootstrap Template

Meet Forkio, free one-page website HTML template. It is built with Bootstrap and comes with SCSS and PSD files. It works really well for app or start-up themes but can easily be adjusted for any kind of content.

WHITE: One-Page HTML Theme

White is a creative one-page HTML theme is perfect for personal portfolio, creative agency, designer portfolio and more. Every detail and animation effect made with passion and professional skills. Template has a universal design , so it’s very easy to customize to fit your needs, just replace images and texts.

Portefeuille

Portefeuille one page HTML template, we are introducing today is totally free with amazing features like creative design, responsive layout, working contact form etc. Download, share this HTML template with your friends and you have complete freedom to modify this one page website template to your project needs.

konefix

Konefix is a free HTML Bootstrap theme. Feel free to use it for your personal or commercial purpose. PanKogut ask just a link to pankogut.com website wherever you want.

LANDER Free HTML Responsive Template

A cool one page psd and html responsive templates. You can use this for both personal and commercial purposes. 

Landro – Bootstrap 3 App Coming Page

Oxygen – Free Bootstrap Theme

Photon HTML Template

SeFolio – One Page Responsive Bootstrap

 SPECTRAL – Responsive Website Template

Sumo Landing – HTML Landing Page  

Techgut – Responsive Corporate One Page Theme

Unika – One Page HTML5 Template

10 Plus Useful CSS Tools For Developers 2015

10 Plus Useful CSS Tools For Developers 2015

CSS or Cascading Style Sheet is used to design webpages and customize them anyway you want. The main elements that include in a CSS are typesetting, adjusting letter spacing, alignments, colors, fonts and los more. A custom CSS can be created in a notepad but you should be very thankful to the developers who have built related software for writing CSS codes and implementing them on their website projects. Here, we have listed down similar CSS tools which are widely used by designers.
1. Skyblue
01. skyblue

Skyblue is an accurate tool for startup projects and it uses grid system with 12 columns. Skyblue framework is built in SASS. This is not exactly a BootStrap killer but it is a minimal framework.
02. contrast-ratio
Contrast Ratio is a software to analyze the contrast ratio between any two valid CSS colors. The tool updates the contrast ratio asyou type in it and hovering over the circle will give you a detailed explanation.
03. cssburrito
The CSS Burrito architecture consists of object oriented CSS that allows separate skin and structure and separate content from container. It also includes scalable and modular architecture for CSS that increases the semantic value of HTML and content and reduces the expectation of a specific HTML structure.
4. Skyline
04. skyline
Skyline is one of the major software for building CSS frameworks which provides solid CSS architecture to support your exceptional design system. The architecture of Skyline is filled up with four layers- Base, Elements, Layout and Modules.
5. Buddy
05. buddy
Buddy compiles source code from higher order css/html/js languages like CoffeeScript, JSX, es6, Twig, Jade, etc. The key features of Buddy are:
• Resolving js dependencies accurately.
• Allow writing js modules without module boilerplate.
• Supporting efficient lazy runtime assessment by storing js modules as strings.
6. Turbine
06. turbinecss
Turbine is a tool that reduces the CSS development time by offering the most powerful PHP tools which includes a minimal syntax, CSS variables and selector aliases, in-built device, browser and OS sniffing, automatic bug fixes and improvements for older browsers.
7. CSSess
07. cssess
CSSess is a JS tool that helps you to find extra CSS systems on your site. It is specifically designed as a bookmarklet and is inspired by Helium CSS.
08. Critical Path
Critical Path CSS tool only extracts the CSS required for the above-the-fold folder content for a particular page. It is used for speeding up a webpage rendering.
09. css-sans
CSS SANS is another CSS tool for programming language and typesetting which is used for extreme web designing. With this software you can change the layout of the webpage by adjusting letter spacing and it offers various fonts to include in a web project.
10. SpaceBase
10. spacebase
SpaceBase is special for its SASS based responsive CSS framework which is also a boilerplate layer which can be adapted for your requirements. SpaceBase combines the best practices for the responsive web with the interior modules you use on your projects. The key features of SpaceBase are- fluid and mobile first grid, SASS-based, object oriented CSS and optimized for lightspeed.
11. deSVG
11. desvg
deSVG is a CSS tool that removes inline SVG bloat from your HTML document and makes SVG’s accessible without JavaScript.
The above listed CSS frameworks are an ultimate solution to design and develop your CSS template. Whether you are designing a webpage for personal use or developing it for business, these tools will support you and help you deliver the right designs. Whether you are a starter or an experienced designer you can use these tools seamlessly because they are completely user friendly and provide you the right ideas.

Pravesh Maurya

I am expert in Blogging and digital Marketing