Nested Classes in Java (Rules) 1. The inner class(non-static nested) has access to all of the outer class's members, including those...
Read More
wrapper classes in Java
Java wrapper classes 1. What's need of wrapper classes? ---1. to be able to add prim types to growable collection(growable data st...
Read More
String class API Java
String class API Important String class constructors 1.String(byte[] bytes) --- byte[] ----> String converter 2.String(char[] cha...
Read More
What does it mean for a subclass-outside-the-package to have access to a superclass (parent) protected member?
What does it mean for a subclass-outside-the-package to have access to a superclass (parent) protected member? It means the subclass inhe...
Read More
Exception Handling Simplified
Exception Handling in Java >>Types of errors: Compilation time error Run time errors -Due to incorrect input of end user or ...
Read More
Abstract class vs interface in Java
Java Difference between abstract class and interface Abstract class and interface both are used to achieve abstraction where we can decl...
Read More
overloading vs overriding in java
overloading vs overriding in java
Read More
Java Interfaces Simplified
Java Interfaces Why we need Java Interfaces ? 1. As an alternative to multiple inheritance. 2. Allows complete loosely coupled archit...
Read More
JAVA Polymorphism Simplified:
Polymorphism in Java : Defination of Polymorphism: one functionality with multiple (changing) forms , static & compile time with ear...
Read More
Java Inheritance Simplified
Inheritance in Java: In OOP, we often organize classes in hierarchy to avoid duplication and reduce redundancy. The classes in the lower ...
Read More
CORE JAVA Point2D PROGRAM
Problem Statement: Create Java Application for the following . Create Point class Point2D in package "geom" : for representing a...
Read More
CORE JAVA 30 BASIC LOGIC BUILDING PROGRAMS (SET 2) FOR GETTING STARTED
listing 1 // Demonstrate if-else-if statements. class IfElse { public static void main(String args[]) { int month = 4; // April ...
Read More
CORE JAVA 12 BASIC LOGIC BUILDING PROGRAMS FOR GETTING STARTED
listing 1 // Demonstrate the basic arithmetic operators. class BasicMath { public static void main(String args[]) { // arithmetic...
Read More
CORE JAVA 11 Listing Programs to Get Started
listing 1 // Compute distance light travels using long variables. class Light { public static void main(String args[]) { int ligh...
Read More
CORE JAVA 5 BASIC PROGRAMS
/* To Do : Go through individual classes, look for compiler errs , if none what will be o/p ? Run the code & confirm the o/p...
Read More
C++ Heap Sort Most Simple Program
Easiest Heap Sort CPP This C++ program, implements the heap sort model of sorting elements. Here is the source code of the C++ progra...
Read More
C++ Quick Sort Most Simple Program
Easy Program For Quick Sort CPP The divide-and-conquer strategy is used in quicksort. Below the recursion step is described: Choose a p...
Read More
FRIEND CLASS IMPLEMENTATION IN CPP EASIEST PROGRAM
MOST SIMPLE PROGRAM FOR FRIEND CLASS IMPLEMENTATION IN C++
Read More
Single Inheritance Most simple Program : CPP
Single Inheritance Most simple Program : C++ Father is white and talented child inherits the properties of colour from father but talent ...
Read More
Inheritance Cpp
In heritance C++ Problem Statement : 1. Design a hierarchy of computer printers. Use multiple inheritance in your hierarchy (Say, Home...
Read More
Customer Account Using Friend Function CPP Program
Customer Account: C++ Program Friend Function Problem Statement : Perform the following tasks on the classes: a) Write the constru...
Read More
Subscribe to:
Posts (Atom)