Home / java

java

Class Loaders in Java

1 what is class loading ? loding .class files into jvm is nothing but class loading. Class loaders are responsible for loading .class files available in hard disk into JVM. 2 Class loaders are three types:: 1. Bootstrap loader. 2. Extension loader. 3. Class path or System loader. • Bootstrap …

Read More »

Threads in Java

We can define a thread in the 2 ways 1.by extending thread class 2.By implementing Runnable interface Q) Thread Class Methods: – getName() run() getPriority() Sleep() isAlive() Start() join() Q) Object class All other classes are sub classes of object class; Object class is a super class of all other …

Read More »

Order of execution of java members

members of a class 1. properties(static and instance) 2. methods (static and instance) 3. constructors. 4. blocks. (static and instance) //first variable and property. order: 1. static properties are initialized. 2. static blocks are executed. 3. static methods are executed only when we call them. we can use static methods …

Read More »

Object Creation in Java

1)How many ways are there to create an object? 1. How many ways to create Java objects A. a. new operator. b. newinstance(). c. clonning. d. serialization / deserialization A. newinstance() method is available in the class called Class.to create the object for Class we have multiple ways. a. [ClassName].class …

Read More »

What is Mutable and Immutable ?

1.what is the Difference between String and StringBuffer? Ans: 1. The string is immutable whereas string buffer is mutable. 2. The string is asynchronous.string buffer is Synchronized. 3. Both are thread safe. 2.what is mutable and immutable ? even though string immutable it looks like mutable? Ans: • Mutable means …

Read More »

Eclipse IDE Features for Java Developers

Eclipse Eclipse is another free Java IDE for developers and programmers and it is mostly written in Java. Eclipse lets you create various cross-platform Java applications for use on mobile, web, desktop and enterprise domains. Its main features include a Windows Builder, integration with Maven, Mylyn, XML editor, Git client, …

Read More »

Most Using IDE’s for Programming, developing and coding Java

NetBeans NetBeans is an open-source Integrated Development Environment written in Java and is one of IDR Solutions’ favorite IDEs for Java coding. The NetBeans IDE supports the development of all Java application types (Java SE, JavaFX, Java ME, web, EJB and mobile applications) out of the box. NetBeans is modular …

Read More »

Funny Java Interview – Can’t Stop Laughing

Q. Do you know framework .? yes I know framework, we surrounded by frames in our life, in fact, we cant live without them. we use frameworks at our home to make doors/windows and ventilators etc. we can customize the framework, for that we need a carpenter.

Read More »