Skip to main content

Posts

Showing posts from April, 2015

Java Data Types: Primitive, Reference

Java Data Types: Primitive, Reference Primitive:   A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values. The eight primitive data types supported by the Java programming language are:   * byte, short, int, long, float, double, boolean, char In addition to the eight primitive data types listed above, the Java programming language also provides special support for character strings via the String class. Enclosing your character string within double quotes will automatically create a new String object; for example, String s = "this is a string"; . String objects are immutable , which means that once created, their values cannot be changed. The String class is not technically a primitive data type, but considering the special support given to it by the language, you'll probably tend to think of it as such A reference type is a data type that’s based on a class ...

OOPs Principles : Inheritance, Polymorphism, Abstraction,Encapsulation

Inheritance, Polymorphism, Abstraction,Encapsulation  Object means a real word entity such as Name, Car, table etc.  Object-Oriented Programming is a method  to design a program using classes and objects.  It simplifies the software development and maintenance by using below concepts: Object Class Inheritance Polymorphism Abstraction Encapsulation Object An object is a software bundle of related state and behavior. Objects are made up of attributes and methods. Attributes are the characteristics that define an object; the values contained in attributes differentiate objects of the same class from one another. Class "Collection of objects " is called class. It is a logical entity. It models the state and behavior of a real-world object. * Every class, except Object , has one and only one immediate superclass * An object "knows" what class it belongs to, and can use class data and class methods, but a class   does not "kno...

Java Concepts

BASIC JAVA Inheritance, Polymorphism, Abstraction,Encapsulation Java Data Types: Primitive, Reference Java Variables: Local, Instance and Static Java Access Modifiers – public, protected, private and default     Important Keywords: Static, Continue,Break , Final,Abstract Inheritance in Java Composition vs Inheritance   Overloading & Overriding   Nested Class in Java Abstract Class & Interface OBJECT class in Java String : Immutable, String Pool, String Buffer,  String Builder, String Methods Java Exception Handling : try, catch, final Garbage Collector : finalize  Reference type in Java Thread: Multithreading, Runnable, Thread Class, DeadLock, Synchronization Java System Class Java IO : File Creation, Open, access,Write,append, InputStream,append, Downloading a file, Scanner Class, Processing CSV