Hi Just Imagine

Java, JSF, EJB, Linux, Literature, Motivation, and Life.

Dec 24, 2018

Explain different ways of creating a thread.Which one would you prefer and why ?

›
Java defines two ways by which a thread can be created. By implementing the Runnable interface. By extending the Thread class. ...

What is dependency injection?

›
IoC is all about inverting the control. To explain in layman's term, suppose you drive a car to your work place, it means you cont...
Nov 23, 2018

Is java pass by value or pass by reference?

›
Java is Strictly Pass by Value. Lets take an example for PRIMITIVE TYPE: Here an int is passed to the function “change()” as parame...

Why wait and notify is declared in Object class instead of Thread ?

›
Suppose a gas station has a single toilet, the key for which is kept at the service desk. The toilet is a shared r...

Why char array is preferred to store password than String in Java?

›
1) Strings are immutable: Strings are immutable in Java and therefore if a password is stored as plain text it wil...
Mar 17, 2017

Exception Handling In Java

›
Course Contents: 1.    Error and exception 2.    Types of exception 3.    Mechanism for exception handling Error It is common...
Jul 29, 2016

Package and Interface in Java

›
Course contents: Content Defining a package Access protection Importing packages Defining interfaces Applying interfaces  An ...

Java nested class, call-by calue, call-by-reference

›
Nested class A class defined within another class is known as nested class. The scope of a nested class is bounded by the scope of its e...
›
Home
View web version
Powered by Blogger.