Browsed by
Category: Blog

What is difference between overloading and overriding

What is difference between overloading and overriding

a) In overloading, there is a relationship between methods available in the same class whereas in overriding, there is relationship between a superclass method and subclass method. b) Overloading does not block inheritance from the superclass whereas overriding blocks inheritance from the superclass. c) In overloading, separate methods share the same name whereas in overriding, subclass method replaces the superclass. d) Overloading must have different method signatures whereas overriding must have same signature.

What are the states associated in the thread

What are the states associated in the thread

Thread contains ready, running, waiting and dead states. In Java, a thread can be in one of the following states: New: When a thread is created but not yet started, it is in the new state. Runnable: A thread that is ready to run is moved to the runnable state. It can be waiting for its turn to be picked for execution by the thread scheduler. Blocked: A thread that is blocked is waiting for a monitor lock to enter…

Read More Read More

Which containers use a Border layout as their default layout

Which containers use a Border layout as their default layout

Window, Frame and Dialog classes use a BorderLayout as their layout. In Core Java, the containers that use a BorderLayout as their default layout are Frame, Window, and Dialog. The BorderLayout divides the container into five areas: North, South, East, West, and Center. When you create a Frame, Window, or Dialog without specifying a layout manager, it defaults to BorderLayout. Here’s an example: java import java.awt.*; public class BorderLayoutExample { public static void main(String[] args) { Frame frame = new…

Read More Read More

What is Inet address

What is Inet address

?– Every computer connected to a network has an IP address. An IP address is a number that uniquely identifies each computer on the Net. An IP address is a 32-bit number. In Java, InetAddress is a class that represents an Internet Protocol (IP) address. It is part of the java.net package and provides methods for working with IP addresses. The InetAddress class can be used to create instances representing both IPv4 and IPv6 addresses. Here’s a brief overview of…

Read More Read More

Govind Namdeo

Govind Namdeo

Govind Namdeo is an Indian film actor. Govind made his debut as a corrupt cop in David Dhawan’s Shola Aur Shabnam (1992). He has acted in numerous A grade movies. Govind Namdeo had done three years Diploma course from National School of Drama (NSD) and a short term learning course of Film and Television Institute of Pune, before he began acting. After passing from NSD, he worked as a member of NSD Repertory Company for a decade. During working there,…

Read More Read More

Arjun Kapoor

Arjun Kapoor

Arjun Kapoor is an Indian actor who appears in Hindi films. In 2012, he was signed by Aditya Chopra for a three-film contract with Yash Raj Films. Arjun was born in Chembur, Mumbai to Indian film producer, Boney Kapoor and Mona Shourie Kapoor, He is the grandson of filmmaker Surinder Kapoor, He is the nephew of actors Anil Kapoor, Sanjay Kapoor and producer Sandeep Marwah, and the first-cousin of actress Sonam Kapoor and producer Rhea Kapoor. He is also the…

Read More Read More

Krishna Abhishek

Krishna Abhishek

Krushna Abhishek is an Indian film actor and a stand up comedian who was born on 30 May 1983, in Mumbai. He has completed his schooling from St. Loran s High School. He made his acting debut with the film “Yeh Kaisi Mohabbat Hai” in 2002. He got recognition from the movie “Bol Bachchan“. He is also a good dancer and has also done several dance reality shows like Nach Baliye Season 3, in 2007 and Jhalak Dikhhla Jaa Season…

Read More Read More

Mithun Chakraborty

Mithun Chakraborty

Mithun Chakraborty Born in Calcutta and educated at the Scottish Church College, Calcutta, where he studied chemistry, Mithun Chakraborty is a leading actor in the Bollywood and the south Indian film industry. He started his film career in a Bengali film made by Mrinal Sen. He shot into national prominence with his films Disco Dancer, Agneepath and was at one time , regarded as a rival to Amitabh Bachchan. He has done and continues to do social service all over…

Read More Read More

Farhan Akhtar

Farhan Akhtar

Farhan Akhtar was born in Mumbai to screenwriters, Javed Akhtar and Honey Irani. His stepmother is the actress Shabana Azmi. He is also cousin of Bollywood ace choreographer and now director Farah Khan. Farhan was the main lead in his twin sister, Zoya Akhtar’s directorial debut Luck By Chance. He entered Bollywood at the age of 17, assisting directors and cinematographers. He dropped out of college and did various jobs like working for a TV production house and setting up…

Read More Read More

How to create a function using function constructor?

How to create a function using function constructor?

The following example illustrates thisIt creates a function called square with argument x and returns x multiplied by itself. var square = new Function (“x”,”return x*x”); In JavaScript, you can create a function using the function constructor. The syntax for creating a function using the function constructor is as follows: javascriptCopy code var functionName = new Function(arg1, arg2, …, argN, functionBody); Here’s an explanation of each part: functionName: This is the name of the function you’re creating. It’s optional, and…

Read More Read More