method is used to specify a container’s layout?Core Java Interview Questions The setLayout() method is used to specify a container’s layout. Total Views: 36,491