COFPROG
Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

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

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