How we learn java

How we learn java

what is class in java?

what is object in java?

what is interface in java and use?

what is inheritence and its type?

View Answers

March 8, 2011 at 11:59 AM

A class is a blueprint through which an object is created.

An object is a runtime entity. In other words object is an instance of a class.

An Interface is a collection of methods with empty implementations and constants variables ( variables with static and final declarations ). All the methods in an interface are "public and abstract" by default. Since interfaces are abstract in nature so they can not be directly instantiated.An imp use of interface is to provide java, the property of multiple inheritance.

An Inheritance is a process through which we can inherit all the properties and method of base class into derived class. Java supports two types of inheritance:

Single Inheritance
Multi Level Inheritance









Related Tutorials/Questions & Answers:
How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type
How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type
Advertisements
How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type
How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type
How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type
Can we learn Java online?
Can we learn Java online?  Hi, I want to learn Java with the help of may online tutorials on Internet. Is it possible to learn Java programming from many tutorials available online on Internet. Can we learn Java online? Thanks
Can we learn Java online?
Can we learn Java online?  Hi, I want to learn Java with the help of may online tutorials on Internet. Is it possible to learn Java programming from many tutorials available online on Internet. Can we learn Java online? Thanks
how we can create website through java
how we can create website through java  Dear actually i wanna ask query about creation of website through java then how we can create web site through java plz help me..........i have already a web site ....specially for premium
How can we solve this puzzle using java ?
How can we solve this puzzle using java ?  Sachin likes sweets a lot. So, he goes to a market of sweets. There is a row of sweet stalls. Every sweet... someone help how can we write the code
How can we destroy the cookie?
How can we destroy the cookie?   How can we destroy the cookie
we can create our own header file in java?n how to create?
we can create our own header file in java?n how to create?  we can create our own header file in java?n how to create
How can we register the variables into a session?
How can we register the variables into a session?  How can we register the variables into a session
How can we repair a MySQL table?
How can we repair a MySQL table?  How can we repair a MySQL table
How can we know that a session is started or not?
How can we know that a session is started or not?  How can we know that a session is started
How we can create a table through procedure ?
How we can create a table through procedure ?  How we can create a table through procedure
how can we store the encrypted passwaord in swings?
how can we store the encrypted passwaord in swings?   how can we store the encrypted passwaord in swings
How do we create session factory in hibernate?
How do we create session factory in hibernate?  Hi, How do we create session factory in hibernate? thanks
How do we create custom component
How do we create custom component  How do we create custom component in JSF. I couldnot find any category for JSF questions
How can we get hibernate statistics?
How can we get hibernate statistics?  Hi, How can we get hibernate statistics? Thanks,   Hi, The Hibernate statistics is one of the most usable feature of Hibernate, having some hidden concepts, is the power
How can we destroy the session, how can we unset the variable of a session?
How can we destroy the session, how can we unset the variable of a session?  How can we destroy the session, how can we unset the variable of a session
How can we save a data list in jsf?
How can we save a data list in jsf?  I have a code in jsf that fires a query in Data Base each time it is called, i have added a validation check to fire query only if list is not-empty but the list gets empty each time
how many max. arguments we pass to the any function ? how many max. arguments we pass to the any function ?
how many max. arguments we pass to the any function ? how many max. arguments we pass to the any function ?   how many max. arguments we pass to the any function
how we retrieve image from database
how we retrieve image from database  my code is:- $search=$_POST["search"]; $sql="SELECT * FROM search WHERE productname ='$search'"; $result = mysql<em>query($sql) or die(mysql&lt
Why should we learn R programming?
. Its syntax are different from Java programming. Why should we learn R programming...Why should we learn R programming?  Hi, Many developers are learning... visualization components. Why should we learn R programming? Here are reasons to learn R
Why should we learn R programming?
. Its syntax are different from Java programming. Why should we learn R programming...Why should we learn R programming?  Hi, Many developers are learning... visualization components. Why should we learn R programming? Here are reasons to learn R
Why should we learn R programming?
. Its syntax are different from Java programming. Why should we learn R programming...Why should we learn R programming?  Hi, Many developers are learning... visualization components. Why should we learn R programming? Here are reasons to learn R
Can we learn Data Science in 3 months?
Can we learn Data Science in 3 months?  Hi, I am beginner in Data...: Can we learn Data Science in 3 months? Try to provide me good examples or tutorials links so that I can learn the topic "Can we learn Data Science in 3
why we use constructors instead of methods in java?
why we use constructors instead of methods in java?   why we use constructors instead of methods in java
can we inherit static method in java?
can we inherit static method in java?  can we inherit static method in java
How many ways we can give the output to a browser?
How many ways we can give the output to a browser?  How many ways we can give the output to a browser
How can we encrypt the username and password using PHP?
How can we encrypt the username and password using PHP?  How can we encrypt the username and password using PHP
How can we submit a form without a submit button?
How can we submit a form without a submit button?  How can we submit a form without a submit button
How can we create a database using PHP and mysql?
How can we create a database using PHP and mysql?  How can we create a database using PHP and mysql
How can we increase the execution time of a php script?
How can we increase the execution time of a php script?  How can we increase the execution time of a php script
how can we prevent back option after log out.
how can we prevent back option after log out.  how can we prevent back option after log out
How can we know the count/number of elements of an array?
How can we know the count/number of elements of an array?  How can we know the count/number of elements of an array
how many max. arguments we pass to the any function ?
how many max. arguments we pass to the any function ?   how many max. arguments we pass to the any function
what is cloud computing? any how we can implement?
what is cloud computing? any how we can implement?  what is cloud computing? any how we can implement
How can we get second of the current time using date function?
How can we get second of the current time using date function?  How can we get second of the current time using date function
how can we pass parameters from jsp href to another servlet
how can we pass parameters from jsp href to another servlet  how can we pass parameters from jsp href to another servlet
How could we get log file as simple text format
How could we get log file as simple text format  Above given javaerrorlog creates the log file in xml code how could we get it in simple text Manmohan
How can we find the number of rows in a result set using PHP?
How can we find the number of rows in a result set using PHP?   How can we find the number of rows in a result set using PHP
How many cookie object we can store in a session? is there any limit?
How many cookie object we can store in a session? is there any limit?  How many cookie object we can store in a session? is there any limit
How many ways can we get the value of current session id?
How many ways can we get the value of current session id?  How many ways can we get the value of current session id
How to learn Java?
Java for Beginners - How to learn Java Programming?  ... for the information on starting with Java? Here we have guided you the steps for learning Java. With dedication and practicing examples you can learn Java
Can we instantiate abstract class in Java?
Can we instantiate abstract class in Java?  HI, Can we instantiate abstract class in Java? Thanks   Hi, No, you can't instantiate an abstract class. Thanks
why we use abstract class in java?
why we use abstract class in java?  what is the the purpose of abstract class.Give example when to use abstract and when use interface
Web Service - Which files we have to give to client and how they will use that
Web Service - Which files we have to give to client and how they will use... and have to use it, how we call this in jsp/servlet 3) Which type of response we.... 2) In client side how they will use that, and how they call method from
How and Where we Access struts Properties file - Struts
How and Where we Access struts Properties file   Hi Friends, am new to struts.I read that " you can store variables in xml file(properties file) and for future enhancements we just call properties file . Now i want to implement
why we use design patterns in java?Example?
why we use design patterns in java?Example?  Hi..... Why we use design patterns?,why they are needed in programming languages?,advantages?   hi friend, please go through the following links may this will be helpful

Ads