Category: java

Final Keyword In Java

January 6, 2017 by Manisha Ambekar

Filed under java

Last modified January 6, 2017

The final keyword in java is used to restrict the user. The java final keyword can be used in many context. Final can be: 1. variable 2. method 3. class The final keyword can be applied with the variables, a final variable that have no value it is called blank final variable or uninitialized final variable. It can be initialized in the constructor only. The …

Wrapper classes

January 6, 2017 by Manisha Ambekar

Filed under java

Last modified January 6, 2017

Each of Java’s eight primitive data types has a class dedicated to it. These are known as wrapper classes because they “wrap” the primitive data type into an object of that class. The wrapper classes are part of the java.lang package, which is imported by default into all Java programs. The wrapper classes in java servers two primary purposes. • To provide a mechanism to …

Files and i/o in java

December 23, 2016 by Manisha Ambekar

Filed under java

Last modified December 23, 2016

The java.io package contains nearly every class you might ever need to perform input and output (I/O) in Java. All these streams represent an input source and an output destination. The stream in the java.io package supports many data such as primitives, object, localized characters, etc. Stream A stream can be defined as a sequence of data. There are two kinds of Streams − • …

Java interface

December 20, 2016 by Manisha Ambekar

Filed under java

Last modified December 20, 2016

An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types. Method bodies exist only for default methods and static methods. Writing an interface is similar …

Polymorphism in Java

December 20, 2016 by Manisha Ambekar

Filed under java

Last modified December 20, 2016

Polymorphism in java is a concept by which we can perform a single action by different ways. Polymorphism is derived from 2 greek words: poly and morphs. The word “poly” means many and “morphs” means forms. So polymorphism means many forms. There are two types of polymorphism in java: compile time polymorphism and runtime polymorphism. We can perform polymorphism in java by method overloading and …

Multithreading in Java

November 10, 2016 by Manisha Ambekar

Filed under java

Last modified November 10, 2016

Multithreading in java is a process of executing multiple threads simultaneously.Thread is basically a lightweight sub-process, a smallest unit of processing.Multiprocessing and multithreading,both are used to achieve multitasking. But we use multithreading than multiprocessing because threads share a common memory area. They don’t allocate separate memory area so saves memory, and context-switching between the threads takes less time than process.Java is a multi-threaded programming language …

Feature-of-java

August 26, 2016 by Giryavva Ghodake

Filed under java

Last modified October 21, 2016

Feature-of-java   Simple According to Sun, Java language is simple because: java is web based programming also.       syntax is based on C++ (so easier for programmers to learn it after C++).       removed many confusing and/or rarely-used features e.g., explicit pointers, operator overloading etc.       No need to remove unreferenced objects because there is Automatic Garbage Collection in java. Object-oriented Object-oriented means we organize our software as …

Interview Quetions of JAVA

July 31, 2016 by Arti Khedkar

Filed under java

Last modified July 31, 2016

  Interview Questions of JAVA   what do you know about Java? What are the supported platforms by Java Programming Language? List any five features of Java? Why is Java Architectural Neutral? How Java enabled High Performance? Why Java is considered dynamic? What is Java Virtual Machine and how it is considered in context of Java’s platform independent feature? List two Java IDE’s?List some Java …

Java Interview questions

July 30, 2016 by S4 R

Filed under java

Last modified October 21, 2016

Java Interview Questions What is the most important feature of Java? What do you mean by platform independence What is a JVM? Are JVM’s platform independent? What is the difference between a JDK and a JVM? What is a pointer and does Java support pointers? What is the base class of all classes? Does Java support multiple inheritance? Is Java a pure object oriented language? …

Exception handling in java

July 12, 2016 by S4 R

Filed under java

Last modified July 12, 2016

Exception handling in java An exception or exceptional event is a problem that arises during the execution of a program. When an Exception occurs the normal flow of the program is disrupted and program/Application terminates abnormally, which is not recommended, therefore these exceptions are to be handled. An exception can occur for many different reasons, below given are some scenarios where exception occurs. A user …