Wednesday, 6 March 2013

JAVA Interview Questions With Answers

   JAVA Interview Questions With Answers

    1. What is the most important feature of Java?
Java is a platform independent language.
    2. What do you mean by platform independence?
Platform independence means that we can write and compile the java code in one platform (eg Windows) and can execute the class in any other supported platform eg (Linux,Solaris,etc).
   3. What is a JVM?
JVM is Java Virtual Machine which is a run time environment for the compiled java class files.
   4. Are JVM's platform independent?
JVM's are not platform independent. JVM's are platform specific run time implementation provided by the vendor.
   5. What is the difference between a JDK and a JVM?
JDK is Java Development Kit which is for development purpose and it includes execution environment also. But JVM is purely a run time environment and hence you will not be able to compile your source files using a JVM.
   6. What is a pointer and does Java support pointers?
Pointer is a reference handle to a memory location. Improper handling of pointers leads to memory leaks and reliability issues hence Java doesn't support the usage of pointers.
   7. What is the base class of all classes?
 java.lang.Object
   8. Does Java support multiple inheritance?
Java doesn't support multiple inheritance.
   9. Is Java a pure object oriented language?
Java uses primitive data types and hence is not a pure object oriented language.
   10. Are arrays primitive data types?
In Java, Arrays are objects.
   11. What is difference between Path and Class path?
Path and Classpath are operating system level environment variales. Path is used define where the system can find the executables(.exe) files and classpath is used to specify the location .class files.
   12. What are local variables?
Local varaiables are those which are declared within a block of code like methods. Local variables should be initialised before accessing them.
   13. What are instance variables?
Instance variables are those which are defined at the class level. Instance variables need not be initialized before using them as they are automatically initialized to their default values.
   14. How to define a constant variable in Java?
The variable should be declared as static and final. So only one copy of the variable exists for all instances of the class and the value can't be changed also.
static final int PI = 2.14; is an example for constant.
   15. Should a main() method be compulsorily declared in all java classes?
No not required. main() method should be defined only if the source class is a java application.
   16. What is the return type of the main() method?
Main() method doesn't return anything hence declared void.
   17. Why is the main() method declared static?
Main() method is called by the JVM even before the instantiation of the class hence it is declared as static.
   18. What is the arguement of main() method?
Main() method accepts an array of String object as arguement.
   19. Can a main() method be overloaded?
Yes. You can have any number of main() methods with different method signature and implementation in the class.
   20. Can a main() method be declared final?
Yes. Any inheriting class will not be able to have it's own default main() method.
   21. Does the order of public and static declaration matter in main() method?
No. It doesn't matter but void should always come before main().
   22. Can a source file contain more than one class declaration?
Yes a single source file can contain any number of Class declarations but only one of the class can be declared as public.
   23. What is a package?
Package is a collection of related classes and interfaces. package declaration should be first statement in a java class.
   24. Which package is imported by default?
java.lang package is imported by default even without a package declaration.
Core Java - Interview Questions and Answers
@ : Home > Technical Interview > Core Java > Interview Questions
   25. Can a class declared as private be accessed outside it's package?
Not possible.
   26. Can a class be declared as protected?
A class can't be declared as protected. only methods can be declared as protected.
   27. What is the access scope of a protected method?
A protected method can be accessed by the classes within the same package or by the subclasses of the class in any package.
   28. What is the purpose of declaring a variable as final?
A final variable's value can't be changed. final variables should be initialized before using them.
   29. What is the impact of declaring a method as final?
A method declared as final can't be overridden. A sub-class can't have the same method signature with a different implementation.
   30. I don't want my class to be inherited by any other class. What should i do?
You should declared your class as final. But you can't define your class as final, if it is an abstract class. A class declared as final can't be extended by any other class.

Monday, 7 January 2013

JAVA TRAINING

JAVA ONLINE TRAINING
Attend TWO FREE DEMO Classes!
Experience the Quality of our Training.
ACUTE SOFT is a Global Interactive Learning company started by proven industry experts with an aim to provide Quality Training in the latest IT Technologies.
ACUTE SOFT has a pool of Expert Trainers worldwide on all the technologies to train the students.
ACUTE SOFT is offering Training services to Major IT giants and to individual students worldwide.
About Our faculty: we have excellent JAVA instructors who have real time experience plus expert orientation in Online Training.
JAVA Online Training
We offer you:
1. Interactive Learning at Learners convenience
2. Industry Savvy Trainers
3. Learn Right from Your Place
4. Customized Curriculum
5. 24/7 system access
6. Highly Affordable Courses
7. Support after Training
a. Resume Preparation
b. Certification Guidance
c. Interview assistance
We have a forth coming online batch on JAVA online training .
We also provide online training on  SAP (All Modules), DATA WAREHOUSING (All Modules), oracle (All Modules), Data Stage,SAS and.NET,Share point,TIBCO,Testing tools and QTP.
Contact : Santhosh /Lakshmi :
INDIA: +91-9848346149, +91-7702226149
Land line: 040 - 42627705
US : +1 973-619-0109, +1 312-235-6527
UK : +44 203-290-4899
http://www.acutesoft.com/

Sunday, 21 October 2012

JAVA ONLINE TRAINING

Java SE 1.6 & 1.7

Core Java
  • Explaining Java Technology
  • Introduction to OOP
  • Crammer and Lexical Structure
  • Sample java program
  • Declaring, Initializing, use variable
  • Creating and Using Objects
  • Using Operators and Decision Constructs
  • Using Loop Constructs
  • Developing and Using Methods
  • Implementing Encapsulation and Constructors
  • Creating and Using Arrays
  • Implementing Inheritance
  • Class Design
  • Advanced Class Features
  • Interfaces
  • Packages
  • Exceptions and Assertions
  • Collections and Generics Framework
  • I/O Fundamentals
  • Threads
Java EE

Spring
  • Introduction
  • Installing
  • IOC, Dependency Injection
  • Beans
  • Bean feature, attributes, etc..
  • Calling constructor, Init Methods
  • AOP
  • MAILING
  • Threads
  • Scheduling
  • JMS
  • Asynchronise calls
  • Spring MVC
  • Ajax
  • Introduction to Web Services
  • Building RESTful Web Services with JAX-RS
  • Advanced JAX-RS Features
  • Running the Advanced JAX-RS Example Application
  • RMI
  • Programming and Declarative approaches
  • Using JavaServer Faces Technology in Web Pages
  • Java Server Faces Technology Advanced Concepts
  • Configuring JavaServer Faces Applications
  • Introduction to Spring 3.x
  • Internationalizing and Localizing Web Applications
  • Building Web Services with JAX-WS
  • Java Message Service Concepts & Examples
Hibernate
  • Introduction to Hibernate
  • Configurations - I
  • Features
  • Hibernate O/R Mapping
  • CRUD operation
  • Hibernate query Lanaguage
  • XML Configrutions
  • Annotations usage
  • Criteria
  • Associations and joins along with all attributes
  • Hibernate datatypes
  • Examples
  • Fetching Strategies
  • Configurations - II
  • Transactions

Monday, 18 June 2012

JAVA ONLINE TRAINING

JAVA ONLINE TRAINING


Attend TWO FREE DEMO Classes!
Experience the Quality of our Training 

ACUTE SOFT is a Global Interactive Learning company started by proven industry experts with an aim to provide Quality Training in the latest IT Technologies.

ACUTE SOFT has a pool of Expert Trainers worldwide on all the technologies to train the students.

ACUTE SOFT is offering Training services to Major IT giants and to individual students worldwide.

About Our faculty: we have excellent JAVA instructor who have real time experience plus expert orientation in Online Training.
                
JAVA ONLINE TRAINING


We offer you:
Ø Interactive Learning at Learners convenience
Ø Industry Savvy Trainers
Ø Learn Right From Your Place
Ø Customized Curriculum
Ø 24/7 system access
Ø Highly Affordable Courses
Ø Support after Training
1) Resume Preparation
2) Certification Guidance
3) Interview assistance
Guaranteed Placement Assistanc
We have a forthcoming online batch on JAVA.
We also provide online training on Informatica, Data Stage, SAS, Share point,  SAP All Modules, web Methods, TIBCO, QTP.

Contact Santhosh/Lakshmi :  INDIA: +91-7702226149
                            US   : +1 973-619-0109
                     Mail: santosh@acutesoft.com

Website:    http://www.acutesoft.com/
        http://info@acutesoft.com