1 / 11

Advanced java online training

Radiant is providing Advanced java online training for USA, UK, CANADA and all over the world with live projects and they are providing job opportunities after completion of courses.

barbie0909
Download Presentation

Advanced java online training

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Reach Us: Radiantits.com Contact Us: +12105037100

  2. Q1. what's the distinction between AN Inner category and a Sub-Class? Ans : An Inner category could be a category that is nested among another category. AN Inner category has access rights for {the category that is nesting it and it will access all variables and ways outlined within the outer class. A sub-class could be a category that inherits from another category referred to as super category. Sub-class will access all public and guarded ways and fields of its super category. Reach Us: Radiantits.com Contact Us: +12105037100

  3. Q2. What are the assorted access specifies for Java classes? Ans: In Java, access specifies are the keywords used before a category name that defines the access scope. the kinds of access specifies for categories are: 1. Public : category,Method,Field is accessible from anyplace. 2. Protected: Method, Field are often accessed from a similar category to that they belong or from the sub-classes, and from the category of same package, but not from outside. 3. Default: methodology,Field,class are often accessed solely from a similar package and not from outside of it’s native package. 4. Private: Methodology, Field are often accessed from a similar category to that they belong. Reach Us: Radiantits.com Contact Us: +12105037100

  4. Q3. What’s the purpose of Static methods and static variables? Ans: When there is a requirement to share a method or a variable between multiple objects of a class instead of creating separate copies for each object, we use static keyword to make a method or variable shared for all objects. Reach Us: Radiantits.com Contact Us: +12105037100

  5. Q4. what's knowledge encapsulation and what’s its significance? Ans: Encapsulation may be a thought in Object orientating Programming for combining properties and ways during a single unit. Encapsulation helps programmers to follow a standard approach for package development as every object has its own set of ways and variables and serves its functions freelance of alternative objects. Encapsulation conjointly serves knowledge activity purpose. Reach Us: Radiantits.com Contact Us: +12105037100

  6. Q5. what's a singleton class? provides a sensible example of its usage. A singleton category in java will have only 1 instance and thus all its ways and variables belong to only one instance. Singleton category construct is beneficial for the things once there's a necessity to limit the amount of objects for a category. The best example of singleton usage situation is once there's a limit of getting only 1 affiliation to a info because of some driver limitations or as a result of any licensing problems. Reach Us: Radiantits.com Contact Us: +12105037100

  7. Q6. What are Java Packages? What’s the importance of packages? Ans: In Java, package may be a assortment of categories and interfaces that are bundled along as they're associated with one another. Use of packages helps developers to modularize the code and cluster the code for correct re-use. Once code has been packaged in Packages, it are often foreign in different categories and used. Reach Us: Radiantits.com Contact Us: +12105037100

  8. Q7. Will we have a tendency to declare a category as Abstract while not having any abstract method? Ans: affirmative we will produce AN abstract category by victimization abstract keyword before category name albeit it doesn’t have any abstract technique. However, if a category has even one abstract technique, it should be declared as abstract otherwise it'll offer miscalculation. Reach Us: Radiantits.com Contact Us: +12105037100

  9. Q8. What are the performance implications of Interfaces over abstract classes? Ans: Interfaces are slower in performance as compared to abstract categories as further indirection are needed for interfaces. Use of interfaces conjointly puts an additional burden on the developers as associate degree time an interface is enforced during a class; developer is forced to implement every and each methodology of interface. Reach Us: Radiantits.com Contact Us: +12105037100

  10. Q20. Does Importing a package imports its sub-packages as well in Java? Ans: In java, when a package is imported, its sub-packages aren’t imported and developer needs to import them separately if required. For example, if a developer imports a package university.*, all classes in the package named university are loaded but no classes from the sub-package are loaded. To load the classes from its sub-package ( say department), developer has to import it explicitly as follows: Import university. department.* Reach Us: Radiantits.com Contact Us: +12105037100

  11. Thank you Reach Us: Radiantits.com Contact Us: +12105037100

More Related