October 2016 - COFPROG

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

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