Core Java programming



What is Java?

Java is the object oriented, similar to  C++ high-level programming language and architecture neutral developed by Sun Microsystems. java was originally called OAK. Object Oriented meaning the capability reuse code. Secondly, it is platform independent i.e we don't have to develop separate applications for different platform. It is possible to develop a single application which can run on multiple platforms like windows, UNIX, and Macintosh systems. java was designed for hand-held devices and set-top boxes.

What is java compiler?

The java compiler (javac) is a command line tool that reads java source code files and compiles them into executable java byte code classes. The java source code must be contained in files whose file names end with  .java extension.

How many types of java program?

Java program has two types. They are:
1. application program (Stand-alone application)
2. Applets program.

What is public Static Void main().

Public keyword is an access specifier. Static allows main() to be called without having to instantiate a particular instance of class.

Explain Access Modifiers In java.

Modifiers are keywords used to define the scope and behavior of classes, methods and variables in Java. Access modifiers specified who can access them.

What is new keyword?

New is a Keyword Which is used when is used when we are creating object if class For Storing all the data like variables and member object of class for there is some memory  space  that is be needed So that  there is help of new Keyword and Object Instantiated or Simply an object reserves.

Explain java Interface.

A java class containing all the method a abstract is called an interface. A method that  has no implementation and which is expected to be implemented by a subclass is called an abstract method.

Explain java classes.

In the real world, you'll often find many individual objects all of the same kind. All the objects that have similar properties and similar behavior are grouped together to from a class.

What is Inheritance?

Inheritance is a compiler-time mechanism in java that allows you to  extend a class (called the base class or super-class) with another class (called the derived class or super-class). In java, inheritance is used for two purposes.

Explain Polymorphism in java?


Polymorphism gives us the ultimate flexibility in extensible The ability to define more than one function with the same name is called Polymorphims. In java, C++ there are  two type of Polymorphism.

SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment