Skip to main content

16th July 2020 Update Of Free Udemy Courses

A complete guide on how to build an IP database using Asana | Join Now PW0-104 Administration Without Wire Certified Practice Exam | Join Now JavaScript Crash Course | Join Now PMP- Project Management Introduction Course | Join Now Video Marketing Masterclass: InVideo | Join Now Medical Surgical Nursing Practice Test 1 | Join Now Learn Fundamentals Of Node.js Programming |���������������������������������������������…

Java J2EE Interview Questions and Answers - Part 3

  1. What is a cloneable interface and how many methods does it contain?- It is not having any method because it is a TAGGED or MARKER interface.
  2. What is the difference between abstract class and interface?- a) All the methods declared inside an interface are abstract whereas abstract class must have at least one abstract method and others may be concrete or abstract. b) In abstract class, key word abstract must be used for the methods whereas interface we need not use that keyword for the methods. c) Abstract class must have subclasses whereas interface can’t have subclasses.
  3. Can you have an inner class inside a method and what variables can you access?- Yes, we can have an inner class inside a method and final variables can be accessed.
  1. What is the difference between String and String Buffer?- a) String objects are constants and immutable whereas StringBuffer objects are not. b) String class supports constant strings whereas StringBuffer class supports growable and modifiable strings.
  2. What is the difference between Array and vector?- Array is a set of related data type and static whereas vector is a growable array of objects and dynamic.
  3. What is the difference between exception and error?- The exception class defines mild error conditions that your program encounters. Exceptions can occur when trying to open the file, which does not exist, the network connection is disrupted, operands being manipulated are out of prescribed ranges, the class file you are interested in loading is missing. The error class defines serious error conditions that you should not attempt to recover from. In most cases it is advisable to let the program terminate when such an error is encountered.
  1. What is the difference between process and thread?- Process is a program in execution whereas thread is a separate path of execution in a program.
  2. What is multithreading and what are the methods for inter-thread communication and what is the class in which these methods are defined?- Multithreading is the mechanism in which more than one thread run independent of each other within the process. wait (), notify () and notifyAll() methods can be used for inter-thread communication and these methods are in Object class. wait() : When a thread executes a call to wait() method, it surrenders the object lock and enters into a waiting state. notify() or notifyAll() : To remove a thread from the waiting state, some other thread must make a call to notify() or notifyAll() method on the same object.
  3. What is the class and interface in java to create thread and which is the most advantageous method?- Thread class and Runnable interface can be used to create threads and using Runnable interface is the most advantageous method to create threads because we need not extend thread class here.
  1. What are the states associated in the thread?- Thread contains ready, running, waiting and dead states.
  2. What is synchronization?- Synchronization is the mechanism that ensures that only one thread is accessed the resources at a time.
  3. When you will synchronize a piece of your code?- When you expect your code will be accessed by different threads and these threads may change a particular data causing data corruption.
  1. What is deadlock?- When two threads are waiting each other and can’t precede the program is said to be deadlock.
  2. What is daemon thread and which method is used to create the daemon thread?- Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread.
  3. Are there any global variables in Java, which can be accessed by other part of your program?- No, it is not the main method in which you define variables. Global variables is not possible because concept of encapsulation is eliminated here.

Comments

Popular Posts

10th July 2020 Update Of Free Udemy Courses

Apache Kafka for absolute beginners | Join NowHealing Your Root Chakra | Join NowMeditation For Beginners | Join NowBlissful Real Estate Investing | Join NowMedical Terminology Test Course | Join NowEFT Your Dentist | Join NowEFT Your Trichotillomania | Join NowThe Complete IT Job Search Course – Land Your Dream IT Job | Join NowPlayerUnknown’s Battlegrounds (PUBG) For Beginner Gamers | Join NowDigital Nomads and Expats: Moving to Mexico | Join NowRobotic Process Automation: RPA for Managers and Leaders | Join NowFive Fast Masking Tips in Photoshop CC | Join NowFast Video Ranking No Matter Your Niche With XRanker360 SEO | Join NowPCAP | Python Programming | Practice Exams | Join NowDiet and Nutrition: Your Complete Fitness Guide | Join Now

DOT NET Interview Questions with Answers

When not to use Design Patterns?Do not use design patterns in any of the following situations.• When the software being designed would not change with time.• When the requirements of the source code of the application are unique.If any of the above applies in the current software design, there is no need to apply design patterns in the current design and increase unnecessary complexity in the design.When to use Design Patterns?Design Patterns are particularly useful in one of the following scenarios.• When the software application would change in due course of time.• When the application contains source code that involves object creation and event notification.Benefits of Design Patterns:The following are some of the major advantages of using Design Patterns in software development.• Flexibility• Adaptability to change• ReusabilityWhat are Design Patterns?A Design Pattern essentially consists of a problem in a software design and a solution to the same. In Design Patterns each pattern…

11th July 2020 Update Of Free Udemy Courses

Malware Analysis Masterclass – Defeat Hackers And Malware | Join Now KVM virtualization on CentOS Linux 8 /RHEL 8 | Join Now Practical Project in QML: The Toda App | Join Now Shell Code Ethical Hacking Course | Join Now Machine Learning From Basic to Advanced | Join Now Reverse Engineering .NET with dnSpy | Join Now Primavera P6 Complete Course of Project Planning 2020 | J…

16th July 2020 Update Of Free Udemy Courses

A complete guide on how to build an IP database using Asana | Join Now PW0-104 Administration Without Wire Certified Practice Exam | Join Now JavaScript Crash Course | Join Now PMP- Project Management Introduction Course | Join Now Video Marketing Masterclass: InVideo | Join Now Medical Surgical Nursing Practice Test 1 | Join Now Learn Fundamentals Of Node.js Programming |���������������������������������������������…

13th July 2020 Update Of Free Udemy Courses

WordPress: Make A Professional Website With No Coding | Join Now Google AdSense &YouTube: Everything You Need to Know | Join Now Affiliate Marketing A Set and Forget Passive Income Method | Join Now Mastering Architectural, Night &HDR Photography | Join Now Python – A Beginners guide towards Python Programming | Join Now Microsoft SQL Server for Beginners to expert | Join Now Fiverr Freelancing 2020: Sell Fiv…

Cisco Career Opportunities - Engineering - India

GradeReq  no.Business GroupHiring ManagerLocationTitleRecruiterInternal / externalSkills required8R938657Cloud Systems EngineeringNath, DeepikaBangaloreENGINEER.III.SOFTWARE ENGINEERING.CISCOAnjali BhatiaInternal-onlyExtensive hands-on experience and networking knowledge. Networking: Cisco Data Center Networking technology and products such as the Nexus family and UCS. Cisco switches and routers, L2 protocols, Spanning Tree, MST, PVST, Routing Protocols, BGP, OSPF, MPLS VPNs, QoS, Multicast, SNMP, Security, Firewalls, Load Balancers, IPv6, ACE, FWSM/ASA, WAAS, Virtual services, ASR9K/CRS, 7600/Cat65006R938658Cloud Systems Engineering

Contact Form

Name

Email *

Message *